1
我想使用谷歌日曆API。爲此,我需要一個授權令牌,我想使用簡單的http請求獲取授權令牌。所以,我一直跟着:https://developers.google.com/accounts/docs/OAuth2InstalledApp#formingtheurl連接到谷歌API沒有庫房
我嘗試以下要求:
POST https://accounts.google.com/o/oauth2/auth
grant_type: authorization_code
scope: https://www.googleapis.com/auth/calendar
response_type: code
redirect_uri: http://localhost:1337
client_id: id
然而,從這個請求我得到的迴應:
Error:invalid_request
Required parameter is missing: response_type
我也嘗試過無數的其他參數,網址,請求方法和不同的應用程序發送請求,但是,我總是得到相同的結果。此外,我還嘗試在Google控制檯中重新創建新項目和新客戶ID,但這似乎也沒有幫助。
我可能只是做了一些根本性的錯誤,idk,文檔似乎有點不清楚。