def get_jsapi_signature(self, noncestr, ticket, timestamp, url):
data = [<EOL>'<STR_LIT>'.format(noncestr=noncestr),<EOL>'<STR_LIT>'.format(ticket=ticket),<EOL>'<STR_LIT>'.format(timestamp=timestamp),<EOL>'<STR_LIT>'.format(url=url),<EOL>]<EOL>signer = WeChatSigner(delimiter=b'<STR_LIT:&>')<EOL>signer.add_data(*data)<EOL>return signer.signature<EOL>
获取 JSAPI 签名

:param noncestr: nonce string
:param ticket: JS-SDK ticket
:param timestamp: 时间戳
:param url: URL
:return: 签名