【问题标题】:Access to Google Play Developer API "as a service"访问 Google Play Developer API “即服务”
【发布时间】:2019-01-29 08:03:46
【问题描述】:

我正在开发一项服务,该服务需要代表我的用户访问 Google Play Developer API

我创建了一个 Web 应用程序 类型的 API 项目。它可以使用 OAuth 同意屏幕成功请求用户的androidpublisher 权限。根据文档,它应该能够向 Google Play Developer API 发出请求。

但对 API 的请求失败并出现以下错误:

The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.

据我了解,API 项目需要从控制台链接到 Google 发布商帐户(设置 -> API 访问 -> 链接项目)。但是,该项目不会出现在列表中(因为它不属于用户)。

有什么解决办法吗?谢谢!

【问题讨论】:

    标签: google-api google-oauth google-play-developer-api


    【解决方案1】:

    对此没有解决方案。控制台支持代表开发者用户执行操作的唯一模式是让他们在 Play 控制台中创建项目,并且您为他们提供可以在他们的项目中使用的工具。

    【讨论】:

    • 好的。我最终使用了服务帐户,我认为这是正确的解决方案,因为它可以让用户更精细地控制服务器可以访问的内容。谢谢
    猜你喜欢
    • 1970-01-01
    • 2014-05-08
    • 1970-01-01
    • 2014-01-06
    • 2014-03-08
    • 2015-04-20
    • 1970-01-01
    • 1970-01-01
    • 2018-06-18
    相关资源
    最近更新 更多