0
我想調用谷歌休息API。它顯示401未經授權的錯誤。在一個例子中,據說我應該這樣調用API:https://www.googleapis.com/calendar/v3/users/me/calendarList/1?fields=colorId&key= {YOUR_API_KEY}任何人都知道如何獲取使用谷歌休息API的API訪問令牌?
我的問題是如何獲取API密鑰?
我想調用谷歌休息API。它顯示401未經授權的錯誤。在一個例子中,據說我應該這樣調用API:https://www.googleapis.com/calendar/v3/users/me/calendarList/1?fields=colorId&key= {YOUR_API_KEY}任何人都知道如何獲取使用谷歌休息API的API訪問令牌?
我的問題是如何獲取API密鑰?
我建議你按照配置日曆文檔中您的應用程序的步驟:https://developers.google.com/google-apps/calendar/instantiate和您在這裏讀了一些有關的OAuth2:https://developers.google.com/accounts/docs/OAuth2
也可能嘗試的OAuth2操場上,我發現它非常有用:https://developers.google.com/oauthplayground/