代码之家  ›  专栏  ›  技术社区  ›  iChrome

从Google Play商店获取评论

  •  0
  • iChrome  · 技术社区  · 7 年前

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

    使用此API的预期流:
    1) 用户(应用程序的所有者)通过其Google凭据登录我的应用程序
    2) 我获得用户的访问权\u令牌
    3) 我使用检索到的访问令牌来使用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应用程序与我的OAuth 2.0项目链接。现在,我只是不明白为什么谷歌会增加这个限制。

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

    1 回复  |  直到 7 年前
        1
  •  1
  •   Nick Fortescue    7 年前

    之所以存在限制,是因为没有添加API,因此任意用户都可以为任何开发人员获取应用程序审查的详细信息。相反,它被添加了,这样开发者就可以编写自己的客户支持工具来分析自己客户的评论并做出响应。

    同样的API也用于比获取评论更重要的事情,比如发布应用程序和下载金融数据。让Oauth访问您的开发人员帐户是一件冒险的事情。谷歌不想鼓励开发者这样做。

    推荐文章