c# - Google API AndroidPublisher does not return reviews -
i'm using googles official .net library access reviews of app (https://developers.google.com/android-publisher/api-ref/reviews/list corresponding api)
"google.apis.androidpublisher.v2": "1.16.0.594"
this (roughly) code:
var credential = new serviceaccountcredential(new serviceaccountcredential.initializer("client_email_from_service_account_json" { scopes = new[] { androidpublisherservice.scope.androidpublisher } }.fromprivatekey("private_key_from_service_account_json")); var service = new androidpublisherservice(new baseclientservice.initializer { httpclientinitializer = credential, applicationname = "some_name", }); var request = service.reviews.list("my_app_id"); using (var reader = new streamreader(request.executeasstream())) { var json = reader.readtoend(); // json "{}\n" } var requestresult = await request.executeasync(); // requestresult.reviews null
i same (empty) result when take access_token
credential
, http get
call manually.
there no error, access should working correctly - ever empty json object.
when try access specific review via id, works fine (again, not pointing access problem).
according https://github.com/google/google-api-nodejs-client/issues/589 reviews api returns reviews posted in last 7 days.
Comments
Post a Comment