第三方平台复用公众号主体快速注册小程序快速注册获取access_token?
发布于 4 年前 作者 jyuan 4908 次浏览 来自 问答

第三方平台 复用公众号主体快速注册小程序快速注册时

文档要求 使用公众号 appid 换取 authorizer_access_token 这个是指的哪个接口?

如果是公众号 “获取Access token” 接口 是不是要第三方平台要 获取复用公众号住的 appid 和 secret 用来获取access_token

如果是其他接口获取烦请提供下接口地址

3 回复

你好,请参考下复用公众号主体快速注册小程序介绍https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/Register_Mini_Programs/fast_registration_of_mini_program.html

这边是使用复用公众号主体注册小程序接口,公众号需要授权第三方平台(授权流程参考https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/Authorization_Process_Technical_Description.html,授权后获取的授权码可以用于换取authorizer_access_token以及authorizer_refresh_token(https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/authorization_info.html)才可以调用接口注册小程序。

文档要求 使用公众号 appid 换取 authorizer_access_token 这个是指的哪个接口?”------------------是指接口https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.html

使用公众号 appid 换取 authorizer_access_token 

这公众号对应的authorizer_access_token,在公众号第一次授权给第三方平台的时候,你就应该有记录存储吧。

应该不是官方的哪个接口,是查你自己记录的公众号APPID对应的令牌记录。

通过微信公众平台接口调试工具(https://mp.weixin.qq.com/debug/cgi-bin/apiinfo)获取access_token

获取jsapi_ticket(https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi

使用微信 JS 接口签名校验工具(https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=jsapisign)计算签名

回到顶部