【发布时间】: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×tamp=0&alt=json returned "Access Not Configured">
根据this answer我应该用google注册我的服务器的ip,但是我没有找到在哪里注册。
我错过了什么?
【问题讨论】:
标签: python google-api google-api-python-client google-apps-marketplace