仅当查询无效购买时,才能在Google Developer API中获得401响应

问题描述

我正在使用Google Play Android开发人员API。我从具有服务帐户的服务器访问它。我有一个私钥,并且有一个访问令牌。

我完全https://www.googleapis.com/auth/androidpublisher使用范围https://developers.google.com/android-publisher/archive/v2/purchases/voidedpurchases/list。当我询问订阅信息时,出现401错误

"Error": {
  "errors": [
   {
    "domain": "androidpublisher","reason": "permissionDenied","message": "The current user has insufficient permissions to perform the requested operation."
}
 ],"code": 401,"message": "The current user has insufficient permissions to perform the requested operation."
}

可能是什么原因造成的?我将此服务帐户添加到开发人员控制台,并提供了所有权限(管理员访问权限)。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)