question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where should I give packageName to discovery.build when using androidpublisher API?

See original GitHub issue

I am curious about whether this part (as the title) have been implemented or not, because I haven’t seen any corresponding packageName parameter in discovery.py. My problem is, for example, I want to get my app’s reviews on Google Play, like,

http = credentials.authorize(httplib2.Http())
service = build('androidpublisher', 'v2', http=http)
service.reviews().list().execute()

Obviously, the request is lack of given packageName, the error happened,

Traceback (most recent call last):
File "get_review.py", line 44, in <module>
File "/Library/Python/2.7/site-packages/googleapiclient/discovery.py", line 691, in method
raise TypeError('Missing required parameter "%s"' % name)
TypeError: Missing required parameter "packageName"

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
theacodescommented, Jun 30, 2016

I think you should be doing

service.reviews(packageName='your-package-name').list().execute()

I’m not sure, as I’m unfamiliar with the androidpublisher API.

0reactions
mcdonccommented, Jul 25, 2018

The comment from @badnoodle describes the correct way to call this API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where should I give packageName to discovery.build when ...
service.reviews(packageName='your-package-name').list().execute(). I'm not sure, as I'm unfamiliar with the androidpublisher API.
Read more >
Google Play Android Developer API
It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery...
Read more >
python server how to update Google Play Developer API ...
3 google-auth-httplib2==0.0. this is my code: from google.oauth2 import service_account import googleapiclient.discovery packagename = " ...
Read more >
androidpublisher - Go Packages
Package androidpublisher provides access to the Google Play Developer API. For product documentation, see: https://developers.google.com/android-publisher ...
Read more >
maxim_mazurok/gapi.client.androidpublisher-v3 - npm package
Then load api client wrapper: gapi.client.load('https://androidpublisher.googleapis.com/$discovery/rest?version=v3', () => { // now we can use: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found