android - 从 Google Play 商店获取评论

标签 android google-play google-play-services google-play-developer-api

我想使用 API 从 Google Play 商店获取评论: https://developers.google.com/android-publisher/api-ref/reviews/list

我预期使用此 API 的流程:
1)用户(应用程序的所有者)通过他的谷歌凭据登录我的应用程序
2)我得到用户的access_token
3) 我使用检索到的 access_token 来使用 API 获取评论。

但是,当我尝试获取评论时,出现以下错误:

 {
        "error": {
            "errors": [
                {
                    "domain": "androidpublisher",
                    "reason": "projectNotLinked",
                    "message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
                }
            ],
            "code": 403,
            "message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
        }
    }

因此,我转到 Google Play 开发者控制台 并将 google play 应用程序链接到 OAuth 2.0 项目。在那次操作之后,我能够成功地获得评论。

但是一些抽象用户无法将他的 google play 应用程序与我的 OAuth 2.0 项目链接起来。而现在,我只是不明白谷歌添加此限制的原因。

有没有其他方法可以获取 Google Play 应用程序的评论(假设该应用程序的所有者可以使用 OAuth 登录)?

最佳答案

存在限制是因为未添加 API,因此任意用户都可以获得任何开发人员的应用评论的详细信息。相反,添加它是为了让开发人员可以编写自己的客户支持工具来分析他们自己客户的评论并做出回应。

相同的 API 也用于比获得评论更重要的事情,例如发布应用程序和下载财务数据。放弃对您的开发者帐户的 Oauth 访问权限是一件冒险的事情。 Google 不想鼓励开发者这样做。

关于android - 从 Google Play 商店获取评论,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53743657/

相关文章:

android - 将 flutter CameraImage 转换为文件

Android Market 将我的应用程序隐藏到某些平板电脑(如 Nexus 7)

android - 安装我的应用程序时谷歌帐户的身份验证错误

安卓谷歌登录: refresh expired id token

android - 在 Ice Cream Sandwich 上启动浏览器

安卓 : How to identify button click in a Listview having more than one button

android - 创建类似的 Activity

android - Google Play 上的应用始终显示 "Update"而不是打开

android - 在精简版中显示 'full paid app' 功能?

android - Google 游戏登录 - 错误 12501 无效响应