微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决仅当查询无效购买时,才能在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 举报,一经查实,本站将立刻删除。