【问题标题】:android google+ authorization安卓谷歌+授权
【发布时间】:2015-01-25 02:03:19
【问题描述】:

我正在尝试通过没有 Google Play 服务的设备上的 google+ 登录我的应用程序。我使用 org.scribe.oauth 来执行此操作。我创建OAuthService 并调用方法getRequestToken()。作为回应,我看到Response body is incorrect. Can't extract token and secret from this: 'Consumer is not registered。 但是我在开发者控制台上注册了我的应用程序。我做错了什么?我应该如何注册我的应用程序?像 Android 应用程序一样,或者我在尝试获取 api 密钥和秘密时应该选择Installed->Otheritem。

【问题讨论】:

  • 你能解决这个问题吗?

标签: android oauth google-plus scribe


【解决方案1】:

创建 API 密钥:

  1. 转到Google Developers Console
  2. 创建或选择一个项目。
  3. 在左侧边栏中,选择 APIs & auth。
  4. 在显示的 API 列表中,找到 Google+ API 并将其状态设置为开启。
  5. 在左侧边栏中,选择凭据。
  6. 通过单击创建新密钥创建 API 密钥。选择适当的密钥类型:服务器密钥、浏览器密钥、Android 密钥或 iOS 密钥。然后点击创建。

更多详情请参考here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-23
    • 2011-05-11
    • 2019-08-12
    相关资源
    最近更新 更多