MCPcopy
hub / github.com/wechatpy/wechatpy / get_ticket

Method get_ticket

wechatpy/client/api/jsapi.py:22–31  ·  view source on GitHub ↗

获取微信 JS-SDK ticket :return: 返回的 JSON 数据包

(self, type='jsapi')

Source from the content-addressed store, hash-verified

20class WeChatJSAPI(BaseWeChatAPI):
21
22 def get_ticket(self, type='jsapi'):
23 """
24 获取微信 JS-SDK ticket
25
26 :return: 返回的 JSON 数据包
27 """
28 return self._get(
29 'ticket/getticket',
30 params={'type': type}
31 )
32
33 def get_jsapi_ticket(self):
34 """

Callers 5

get_jsapi_ticketMethod · 0.95
get_jsapi_card_ticketMethod · 0.95
test_jsapi_get_ticketMethod · 0.45
jsapi_signatureFunction · 0.45

Calls 1

_getMethod · 0.45

Tested by 2

test_jsapi_get_ticketMethod · 0.36