本文介绍了如何获取Google Apps市场通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新的市场应用程序并将其安装在我的域中.我正在尝试使用appsmarket api通过以下代码获取安装了我的应用程序的域的列表:

I've created a new marketplace app and installed it on my domain. I'm trying to use the appsmarket api to get a list of domains which installed my app, 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)

我得到以下错误:

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">

根据此答案,我应该在google上注册服务器的ip,但找不到在哪里做

According to this answer I should register my server's ip with google, but I didn't find where to do it.

我想念什么?

推荐答案

回答我自己的问题.

Google Cloud Console(或旧的API Console)中有两个名称相似的服务:

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

第二个必须启用才能使许可API起作用.

The second one has to be enabled for the licensing API to work.

这篇关于如何获取Google Apps市场通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 08:36