【问题标题】:Google Play Review API not returning all resultsGoogle Play Review API 未返回所有结果
【发布时间】:2016-09-30 08:31:55
【问题描述】:

我正在使用https://developers.google.com/android-publisher/api-ref/reviews/list API 来获取应用程序的所有评论。

但即使按照文档中的所有说明(例如创建 Auth API,使用它来验证应用帐户),我也只能获得最新的 2 条评论。

谁能帮忙。

编辑:

通过调用 google oauth 登录方法以通常方式接收的访问令牌。然后在 get 方法中调用此 URL 以接收评论。

https://www.googleapis.com/androidpublisher/v2/applications/your_package_name/reviews? access_token=your_auth_token

【问题讨论】:

  • 如果您共享调用 API 的代码,将会很有用。
  • 您好@irundaia 信息已更新。请看一看。
  • 确保您正确提供了access_token。有时,错误是复制了错误的令牌。如果不是这种情况,请尝试获取新令牌。请注意,每个访问令牌仅在短时间内有效。当前访问令牌过期后,服务器将需要使用刷新令牌来获取新令牌。您可以查看此sample code。
  • @ronns 你能告诉我你是如何得到那个访问令牌的吗..我试了更多我没有得到那个。你能告诉我
  • @ronns 是上面的代码仍在工作。我试图创建一个类似的代码,但在 com.akdeniz.googleplaycrawler.GooglePlayException: Error=BadAuthentication at com.akdeniz.googleplaycrawler.GooglePlayAPI.executeHttpRequest(GooglePlayAPI.java:522) at com.akdeniz.googleplaycrawler 签入时出现身份验证错误。 GooglePlayAPI.executePost(GooglePlayAPI.java:482) 在 com.akdeniz.googleplaycrawler.GooglePlayAPI.executePost(GooglePlayAPI.java:462) 在 com.akdeniz.googleplaycrawler.GooglePlayAPI.loginAC2DM(GooglePlayAPI.java:180)

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


【解决方案1】:

仅显示过去 2 周的评论。

【讨论】:

  • 我试图创建一个类似的代码,但在 com.akdeniz.googleplaycrawler.GooglePlayException: Error=BadAuthentication at com.akdeniz.googleplaycrawler.GooglePlayAPI.executeHttpRequest(GooglePlayAPI.java:522 ) 在 com.akdeniz.googleplaycrawler.GooglePlayAPI.executePost(GooglePlayAPI.java:482) 在 com.akdeniz.googleplaycrawler.GooglePlayAPI.executePost(GooglePlayAPI.java:462) 在 com.akdeniz.googleplaycrawler.GooglePlayAPI.loginAC2DM(GooglePlayAPI.java: 180)

    非常感谢任何建议
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-30
  • 1970-01-01
  • 2018-11-17
  • 1970-01-01
  • 2018-05-11
  • 1970-01-01
相关资源
最近更新 更多