簡體   English   中英

Android Google+授權

[英]android google+ authorization

我正在嘗試在沒有Google Play服務的設備上通過Google+登錄到我的應用程序。 我使用org.scribe.oauth來做到這一點。 我創建OAuthService並調用方法getRequestToken() 作為響應,我看到Response body is incorrect. Can't extract token and secret from this: 'Consumer is not registered Response body is incorrect. Can't extract token and secret from this: 'Consumer is not registered 但是我在開發者控制台上注冊了我的應用程序。 我做錯了什么? 我應該如何注冊我的應用程序? 像Android應用程序一樣,當我嘗試獲取api密鑰和密碼時,應該選擇Installed->Other項目。

要創建API密鑰:

  1. 轉到Google Developers Console
  2. 創建或選擇一個項目。
  3. 在左側的邊欄中,選擇API和身份驗證。
  4. 在顯示的API列表中,找到Google+ API並將其狀態設置為“開啟”。
  5. 在左側的邊欄中,選擇“憑據”。
  6. 通過單擊創建新密鑰來創建API密鑰。 選擇適當的密鑰類型:服務器密鑰,瀏覽器密鑰,Android密鑰或iOS密鑰。 然后單擊創建。

有關更多詳細信息,請參閱此處

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM