googleplay-api icon indicating copy to clipboard operation
googleplay-api copied to clipboard

How to get review's author name?

Open rambuvn opened this issue 9 years ago • 2 comments

I try to get reviews from an app but response just have content and title without author name. How do i get it ?

rambuvn avatar Mar 02 '15 07:03 rambuvn

First of all you need to change user-agent header to Android-Finsky/5.4.12 (api=3,versionCode=80341200,sdk=17,device=tf101,hardware=ventana,product=US_epad,platformVersionRelease=4.2.1,model=Transformer,isWideScreen=0)

Next you need to edit googleplay.proto and change

message Review {
  optional string authorName = 1;

to

message Review {
  optional GoogleUser author= 33;

than create appropriate GoogleUser Entity

message GoogleUser{
  optional string personId= 1;
  optional string uerId= 2;
  optional int age?= 3;
  optional int uknown?= 4;
  optional string name = 5;
  optional string avatarUrl = 10;
  optional string playStoreUrl= 16;
  optional string googlePlusUrl= 19;

}

and regenrate proto classes and fix getters.

Hiller avatar May 08 '15 04:05 Hiller

Thanks Hiller, I added your changes in my fork (https://github.com/go717franciswang/googleplay-api/commit/4f87b2934d4989721e56805c3d33e9aef75dcec5), and it's working great.

go717franciswang avatar Sep 16 '15 00:09 go717franciswang