googleplay-api
googleplay-api copied to clipboard
How to get review's author name?
I try to get reviews from an app but response just have content and title without author name. How do i get it ?
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.
Thanks Hiller, I added your changes in my fork (https://github.com/go717franciswang/googleplay-api/commit/4f87b2934d4989721e56805c3d33e9aef75dcec5), and it's working great.