如何获取谷歌市场通知

2024-06-11 21:40:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我创建了一个新的marketplace应用程序并将其安装到我的域中。我正在尝试使用appsmarket api获取安装了我的应用程序的域的列表,代码如下:

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)

我得到以下错误:

^{pr2}$

根据this answer的说法,我应该向google注册服务器的ip,但我没有找到在哪里注册。在

我错过了什么?在


Tags: key代码clientapiid应用程序http列表
2条回答

试试这个:

It's 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.

从你上面给出的链接的评论来看

回答我自己的问题。在

在Google云控制台(或旧的API控制台)中有两个名称相似的服务:

  • 谷歌应用程序市场SDK
  • 谷歌应用程序市场API

第二个必须启用许可API才能工作。在

相关问题 更多 >