[英]The current user has insufficient permissions to perform the requested operation - Google Play Developer API
I have a Google Dev Console process with Google Play Developer API is enabled and the project is linked to Google Play project.我有一个谷歌开发控制台进程,谷歌播放开发者 API 已启用,并且项目链接到谷歌播放项目。 In Google Dev console project, created a service account (I'm an owner of the project).在 Google Dev 控制台项目中,创建了一个服务帐户(我是该项目的所有者)。 After that i create a json file key to authenticate.之后,我创建了一个 json 文件密钥进行身份验证。 Tried to using google-api-client in PHP, Google Developer API Playground to send request to In-App-Purchase details of my apps but got error: "The current user has insufficient permissions to perform the requested operation."尝试在 PHP、Google Developer API Playground 中使用 google-api-client 向我的应用程序的应用内购买详细信息发送请求,但出现错误:“当前用户没有足够的权限来执行请求的操作。” Details as below:详情如下:
Request:要求:
GET Request https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}?access_token={access_token}
Response回复
Array
(
[error] => Array
(
[code] => 401
[message] => The current user has insufficient permissions to perform the requested operation.
[errors] => Array
(
[0] => Array
(
[message] => The current user has insufficient permissions to perform the requested operation.
[domain] => androidpublisher
[reason] => permissionDenied
)
)
)
)
The Method: purchases.products.get operates on private user data. 方法: purchasing.products.get 对私人用户数据进行操作。 Due to that fact you used Oauth2 to authorize a user and get an access token.由于这个事实,您使用 Oauth2 来授权用户并获取访问令牌。
this method requires that the user to consent to the following scope此方法需要用户同意以下 scope
The error message The current user has insufficient permissions to perform the requested operation.
错误信息The current user has insufficient permissions to perform the requested operation.
Means one of two things.表示两件事之一。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.