【发布时间】:2022-01-07 10:37:24
【问题描述】:
我有一个启用了 Google Play Developer API 的 Google Dev Console 进程,并且该项目已链接到 Google Play 项目。在 Google Dev 控制台项目中,创建了一个服务帐户(我是该项目的所有者)。之后,我创建一个 json 文件密钥进行身份验证。尝试在 PHP、Google Developer API Playground 中使用 google-api-client 向我的应用程序的 In-App-Purchase 详细信息发送请求,但出现错误:“当前用户没有足够的权限执行请求的操作。”详情如下:
请求:
GET Request https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}?access_token={access_token}
回应
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
)
)
)
)
【问题讨论】:
标签: php google-api google-oauth google-developers-console google-play-developer-api