我有一个 Google 开发控制台进程,启用了 Google Play Developer API,并且该项目链接到 Google Play 项目。
在 Google Dev 控制台项目中,创建了 OAuth 客户端 ID(Web 应用程序)(我是该项目的所有者)。使用“client_id”和“client_secret”进行身份验证。
尝试在 Python、Google Developer API Playground 中使用 google-api-client 发送请求以列出我们应用程序的评论,但收到错误:“当前用户没有足够的权限来执行请求的操作。”
详情如下:
要求:
GET /androidpublisher/v2/applications/<package_name>/reviews
回复:
"error": {
"code": 401,
"message": "The current user has insufficient permissions to perform the requested operation.",
"errors": [
{
"domain": "androidpublisher",
"message": "The current user has insufficient permissions to perform the requested operation.",
"reason": "permissionDenied"
}
]
}
}
我错过了什么吗?
使用 Google Play Android Developer API 进行收据验证有一件重要的事情:
如果您添加了应用内商品BEFORE授予权限或链接到您的服务帐户后,您必须打开“应用内产品”并进行更改。例如,您可以编辑产品的描述并保存。那么你应该立即获得许可。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)