問題描述
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 user2359820、kirypto)