【问题标题】:How to get Google Apps marketplace notification如何获取 Google Apps 市场通知
【发布时间】:2013-12-26 14:13:21
【问题描述】:

我创建了一个新的市场应用程序并将其安装在我的域中。我正在尝试使用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)

我收到以下错误:

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

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

我错过了什么?

【问题讨论】:

    标签: python google-api google-api-python-client google-apps-marketplace


    【解决方案1】:

    回答我自己的问题。

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

    • Google Apps Marketplace SDK
    • Google Apps Marketplace API

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

    【讨论】:

      【解决方案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.
      

      来自您在上面提供的链接的 cmets

      【讨论】:

      • 感谢您的回复。在发布问题之前,我阅读了此评论。 (a) appsmarket 的服务是什么?如果它是“Google Apps Marketplace SDK”,它已经启用,并且 (b) 我没有找到指定 IP 地址的地方。只有“通知端点”部分我只能指定域(我什至不确定这是否是我们要寻找的......)
      • 找到了!它是“Google Apps Marketplace API”而不是“Google Apps Marketplace SDK”
      • @Tzach 最简单的方法是当您转到 code.google.com/apis/console 时,您可以选择转到旧控制台(而不是新的云控制台)在黄色吐司中选择该选项,然后然后按照说明进行操作
      猜你喜欢
      • 2022-10-23
      • 2016-03-22
      • 1970-01-01
      • 1970-01-01
      • 2021-10-30
      • 2014-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多