第三方授权令牌得到的authorizer_access_token再调用数据分析接口报错48001?

小程序 文章 2022-03-01 17:20 1493 0 全屏看文

AI助手支持GPT4.0

第三方授权令牌得到的authorizer_access_token再调用数据分析接口报错48001?The authorizer_access_token obtained from the third-party authorization token then calls the data analysis interface and reports an error of 48001?

第三方授权令牌得到的authorizer_access_token再调用数据分析接口报错48001?

1.先通过第三方授权:获取/刷新接口调用令牌 得到的authorizer_access_token

https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=COMPONENT_ACCESS_TOKEN


2.再去调数据分析接口(用得到的authorizer_access_token替换ACCESS_TOKEN

https://api.weixin.qq.com/datacube/getusersummary?access_token=ACCESS_TOKEN


3.报错{"errcode":48001,"errmsg":"api unauthorized rid: 621dd7b0-42a1b517-66417ad1"}


1.先通过第三方授权:获取/刷新接口调用令牌 得到的authorizer_access_token https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=COMPONENT_ACCESS_TOKEN 2.再去调数据分析接口(用得到的authorizer_access_token替换ACCESS_TOKEN) https://api.weixin.qq.com/datacube/getusersummary?access_token=ACCESS_TOKEN 3.报错{"errcode":48001,"errmsg":"api unauthorized rid: 621dd7b0-42a1b517-66417ad1"}

回答:

第三方平台小助手:

你好,wx41bd6fc0001260f4未认证订阅号,https://developers.weixin.qq.com/doc/offiaccount/Analytics/User_Analysis_Data_Interface.html因此第三方平台也不会有相关权限操作的哈

后续遇到此类问题参考https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/troubleshooting/third_party_authority_instructions_troubleshooting.html自助排查下

peng:小程序是有
 :公众号好像没有那个数据分析的权限集,那是不是就不能用 第三方authorizer_access_token去调用接口了
崔丛丛:

权限不足造成的

 :第三方授权了这些权限,还要什么权限么
崔丛丛:看私信

-EOF-

AI助手支持GPT4.0