mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-25 14:24:56 +00:00
review() function returns all fields
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
This commit is contained in:
parent
3b37b18542
commit
b8412dd68a
@ -402,13 +402,21 @@ class GooglePlayAPI(object):
|
||||
if(filterByDevice):
|
||||
path += "&dfil=1"
|
||||
data = self.executeRequestApi2(path)
|
||||
reviews = [rev for rev in data.payload.reviewResponse.getResponse.review]
|
||||
return [{'documentVersion': r.documentVersion,
|
||||
'timestampMsec': r.timestampMsec,
|
||||
'starRating': r.starRating,
|
||||
'comment': r.comment,
|
||||
'commentId': r.commentId,
|
||||
'author': r.author2.name} for r in reviews]
|
||||
output = []
|
||||
for rev in data.payload.reviewResponse.getResponse.review:
|
||||
author = {'personIdString': rev.author2.personIdString,
|
||||
'personId': rev.author2.personId,
|
||||
'name': rev.author2.name,
|
||||
'profilePicUrl': rev.author2.urls.url,
|
||||
'googlePlusUrl': rev.author2.googlePlusUrl}
|
||||
review = {'documentVersion': rev.documentVersion,
|
||||
'timestampMsec': rev.timestampMsec,
|
||||
'starRating': rev.starRating,
|
||||
'comment': rev.comment,
|
||||
'commentId': rev.commentId,
|
||||
'author': author}
|
||||
output.append(review)
|
||||
return output
|
||||
|
||||
def delivery(self, packageName, versionCode,
|
||||
offerType=1, downloadToken=None, progress_bar=False):
|
||||
|
Loading…
Reference in New Issue
Block a user