Google Play Developer API - “当前用户没有足够的权限来执行请求的操作." [英] Google Play Developer API - "The current user has insufficient permissions to perform the requested operation."

查看:30
本文介绍了Google Play Developer API - “当前用户没有足够的权限来执行请求的操作."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个启用了 Google Play Developer API 的 Google 开发控制台进程,并且该项目已链接到 Google Play 项目.在 Google Dev 控制台项目中,创建了 OAuth 客户端 ID(Web 应用程序)(我是该项目的所有者).使用client_id"和client_secret"进行身份验证.尝试在 Python、Google Developer API Playground 中使用 google-api-client 发送请求以列出我们应用的评论,但出现错误:当前用户没有足够的权限来执行请求的操作."详情如下:请求:

I have a Google dev console process with Google Play Developer API is enabled and the project is linked to Google Play project. In Google Dev console project, created OAuth Client ID (web application) (I'm an owner of the project). Using "client_id" and "client_secret" to authenticate. Tried to using google-api-client in Python, Google Developer API Playground to send request to list reviews of our apps but got error: "The current user has insufficient permissions to perform the requested operation." Details as below: Request:

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 验证收据有一个非常重要的事情.

There is a very important thing about receipt validation using Google Play Android Developer API.

如果您在BEFORE授予权限或链接到您的服务帐户之前添加了您的应用内产品,则您需要打开应用内产品";并执行一些更新.例如,您可以编辑产品描述并保存.您应该立即获得许可.

If you added your in-app product BEFORE granting permission or linking to your service account, you need to open "In-app products" and perform some update. You can for example edit description of your product and save. You should instantly get permission.

这篇关于Google Play Developer API - “当前用户没有足够的权限来执行请求的操作."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆