Google Developer Console 和已安裝的應用 (Google Developer Console and Installed App)


問題描述

Google Developer Console 和已安裝的應用 (Google Developer Console and Installed App)

g根據本指南:

將 OAuth 2.0 用於已安裝的應用程序 https://developers.google.com/identity/protocols/OAuth2InstalledApp

我應該能夠在創建新的客戶端 ID 時從列表中選擇“已安裝的應用程序”。

但我只看到這個列表: ‑ Web 應用程序 ‑ Android 了解更多 ‑ Chrome 應用了解更多 ‑ iOS 了解更多 ‑ PlayStation 4 ‑ 其他

我想做的是使用帶有cordova應用程序的inappbrowser獲取Google API令牌,如下所述:http://phonegap‑tips.com/articles/google‑api‑oauth‑with‑phonegaps‑inappbrowser.html

但正如我所說,沒有這樣的選項'已安裝的應用程序'。

我錯過了什麼嗎?


參考解法

方法 1:

This is an old question, but I thought I'd answer it, as I just had the same problem.

The short answer is: use "Other".

I figured this out through experimentation. I had downloaded an old tutorial with instructions to use "Installed Application". To make it work with my Google Developer Console Project, I made an "Other" client ID, and copied the information into it. Immediately, my application acted the same as the tutorial suggested it should have. Hope this helped!

(by user2359820kirypto)

參考文件

  1. Google Developer Console and Installed App (CC BY‑SA 2.5/3.0/4.0)

#google-api #cordova






相關問題

在 PHP 中壓縮 JSON 字符串並在 Javascript 中解壓縮以進行 Google API 的數據庫查詢 (Compress JSON string in PHP and decompress in Javascript for Database query for Google API)

將 Google Places API 與 MonoTouch 一起使用? (Using Google Places API with MonoTouch?)

如何獲取我的 Gmail 帳戶的個人資料圖片? (How to get the profile picture of my Gmail account?)

google.elements.newsShow 顯示時間不起作用 (google.elements.newsShow display Time not working)

gapi.client.load 未調用回調:console.log 中指定了無效或非法字符串錯誤 (gapi.client.load not calling callback: An invalid or illegal string was specified error in console.log)

Google Developer Console 和已安裝的應用 (Google Developer Console and Installed App)

如何從 Google 自定義搜索 API 獲得 100 多個結果 (How to get more than 100 results from Google Custom Search API)

Pandas / Google Analytics API 身份驗證嘗試給我帶來了一個奇怪的 python 錯誤 (Pandas / Google Analytics API authentication attempt throws me a weird python error)

在 alpha 階段使用谷歌云功能進行生產 (Using a google cloud feature in alpha stage for production)

流量中的 Google Maps Distance Matrix API 持續時間添加返回錯誤結果的所有段 (Google Maps Distance Matrix API duration in traffic adding all segments returning wrong result)

Python 事件集成中的 QML Calendar 和 Google Calendar API (QML Calendar and Google Calendar API in Python events integration)

獲取錯誤 {“error”:“invalid_grant”,“error_description”:“令牌已過期或撤銷。” 來自谷歌 oauth2 API (Getting error { "error" : "invalid_grant", "error_description" : "Token has been expired or revoked." } from Google oauth2 API)







留言討論