Google Marketplace许可API突然不起作用 [英] Google Marketplace license api suddenly does not work

查看:143
本文介绍了Google Marketplace许可API突然不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自UTC约5:30开始,我们只收到此回覆。

https://www.googleapis.com/appsmarket/v2/customerLicense/ {appId} / {customer}



{ 错误:{错误:[{域:全局,原因:禁止,消息:未被授权访问应用程序ID}],代码:403,消息:没有权限访问应用程序ID}}



但我们这边没有任何以前的开发或更改,这会影响我们所有的市场应用程序。



任何想法正在发生什么以及如何解决/解决此问题? / b>如果您仍然遇到 403 Forbidden

在市场API调用中确保您遵循以下这些指南


访问这些API是受限制的:只有与您的
Developer Console项目相关的项目成员应用程序可能会使用
API。具体而言,这些项目成员必须处于Can Edit或
所有者角色。您也可以以
登录用户的身份访问UserLicense和CustomerLicense。请参阅
https: //cloud.google.com/compute/docs/access/add-remove-change-permissions-for-team-members ,了解如何将
添加到您的项目中。


例如,使用Google云端平台项目中的服务帐户为您提供API请求,无需使用任何模拟/委派。 b $ b

Since approx 5:30 UTC we are receiving only this response for this api call

https://www.googleapis.com/appsmarket/v2/customerLicense/{appId}/{customer}

{"error":{"errors":[{"domain":"global","reason":"forbidden","message":"Not authorized to access the application ID"}],"code":403,"message":"Not authorized to access the application ID"}}

but there has not been any previous development or changes on our side and this affects all of our marketplace applications.

Any ideas what is going on and how to fix/workaround this issue?

解决方案

This issue should now be fixed by Google.

If you are still experiencing 403 Forbidden on marketplace API calls make sure you are following these guidelines

Access to these APIs is restricted: only project members of the Developer Console project associated with your application may use the API. Specifically, these project members must be in Can Edit or Is Owner roles. You may also access UserLicense and CustomerLicense as the logged in user to your app. Refer to https://cloud.google.com/compute/docs/access/add-remove-change-permissions-for-team-members to learn how to add members to your project.

For example by doing the API requests using a service account in the Google Cloud Platform Project for you application without using any impersonation/delegation.

这篇关于Google Marketplace许可API突然不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆