第一步
拿到component_verify_ticket(票据),component_verify_ticket这个东西是微信主动推的,没有查询接口
接口文档:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/component_verify_ticket.html
第二步
根据component_verify_ticket(票据)获取微信公众号应用的component_access_token (应用级别)
接口文档:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/component_access_token.html
第三步
根据component_access_token查询微信公众号下所有小店的授权信息取得店铺授权刷新码(authorizer_refresh_token)
接口文档:https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/getAuthorizerList.html
第四步
根据店铺授权刷新码(authorizer_refresh_token)取得小店授权码(authorizer_access_token)
接口文档:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.html