How to get a notification on the Google market

I created a new application in the market and installed it in my domain. I am trying to use the applicationmarket api to get a list of domains that my application has installed, with the following code:

credentials = SignedJwtAssertionCredentials(CLIENT_ID, PRIVATE_KEY, SCOPE) http = httplib2.Http() http = credentials.authorize(http) service = build(serviceName='appsmarket', version='v2', http=http) lists = service.licenseNotification().list( applicationId=APP_ID, timestamp=0, max_results=10).execute(http=http) 

And I get the following error:

 apiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/appsmarket/v2/licenseNotification/<APP_ID>?max-results=10&timestamp=0&alt=json returned "Access Not Configured"> 

According to this answer, I have to register my ip server using google, but I did not find where to do it.

What am I missing?

+1
source share
2 answers

Answering my own question.

There are two services with similar names in the Google Cloud Console (or the old API console):

  • Google Apps Marketplace SDK
  • Google Apps Marketplace API

For the licensing API, the second must be enabled .

+1
source

Try the following:

 It surprisingly hidden. Visit code.google.com/apis/console. First, make sure the service you want is enabled under "Services". Then go to "API Access" and specify your calling domains or IP addresses. 

From the comments of the link you provided above

+1
source

Source: https://habr.com/ru/post/978877/


All Articles