0
通過Postman學習Trello API文檔。我一直在關注這裏的文檔https://developers.trello.com/get-started/intro。並已在測試賬號上授權服務器令牌。通過Postman學習Trello API
注:其中通過https://trello.com/app-key
提供的密鑰但是要怎樣做這個請求時,它總是返回此響應。
響應
- HTTP狀態:401
- 車身/內容:無效的關鍵
- 自定義頁眉(X-trello版本):1.855.2
請求
- HTTP方法:GET
- 網址:https://api.trello.com/1/members/[username]?key=[application_key]&token=[optional_auth_token]
- 網址參數[用戶名]:我/ user_with_server_token_authorised
- 網址參數[application_key]:服務器令牌快捷鍵
- 網址參數[optional_auth_token]:OAuth的1祕密
我做錯了嗎?
應用https://trello.com/app-key上顯示的應用程序密鑰(開發人員API密鑰)和來自OAuth的「令牌」。仍然使用https://api.trello.com/1/members/me或https://api.trello.com/1/members/返回401 /無效令牌。 –
我認爲你的'app key'是正確的,但'token'是錯誤的。再次檢查trello.com/app-key。 「應用祕密」在標題** Oath **之下。您需要點擊第2段中的鏈接*標記*,然後按照說明進行操作。 –
感謝您提供此信息,我只需從Developer API密鑰(通過**服務器令牌**應用程序)生成新令牌即可。 –