MCPcopy
hub / github.com/wechatpy/wechatpy / refresh_authorizer_token

Method refresh_authorizer_token

wechatpy/component.py:394–409  ·  view source on GitHub ↗

获取(刷新)授权公众号的令牌 :params authorizer_appid: 授权方appid :params authorizer_refresh_token: 授权方的刷新令牌

(
            self, authorizer_appid, authorizer_refresh_token)

Source from the content-addressed store, hash-verified

392 return result
393
394 def refresh_authorizer_token(
395 self, authorizer_appid, authorizer_refresh_token):
396 """
397 获取(刷新)授权公众号的令牌
398
399 :params authorizer_appid: 授权方appid
400 :params authorizer_refresh_token: 授权方的刷新令牌
401 """
402 return self.post(
403 '/component/api_authorizer_token',
404 data={
405 'component_appid': self.component_appid,
406 'authorizer_appid': authorizer_appid,
407 'authorizer_refresh_token': authorizer_refresh_token
408 }
409 )
410
411 def get_authorizer_info(self, authorizer_appid):
412 """

Callers 3

get_client_by_appidMethod · 0.95
fetch_access_tokenMethod · 0.80

Calls 1

postMethod · 0.45

Tested by 1