我创建了一个新的市场应用程序并将其安装在我的域中。我正在尝试使用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">
根据这个答案,我应该在google上注册我的服务器的ip,但是我找不到在哪里做的。
我想念什么?
回答我自己的问题。
Google Cloud Console(或旧的API Console)中有两个名称相似的服务:
必须启用第二个功能,许可API才能正常工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句