【发布时间】:2018-12-12 13:02:55
【问题描述】:
我想使用 API 从 Google Play 商店获取评论: https://developers.google.com/android-publisher/api-ref/reviews/list
我使用此 API 的预期流程:
1)用户(应用程序的所有者)通过他的 Google 凭据登录我的应用程序
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 Developer Console 并将 google play 应用程序链接到 OAuth 2.0 项目。在那次操纵之后,我能够成功地获得评论。
但一些抽象用户无法将他的 google play 应用程序与我的 OAuth 2.0 项目链接起来。现在,我只是不明白为什么谷歌添加了这个限制。
是否有任何其他方式来获取 Google Play 应用程序的评论(假设该应用程序的所有者可以使用 OAuth 登录)?
【问题讨论】:
标签: android google-play google-play-services google-play-developer-api