![](/img/trans.png)
[英]Autodesk Forge - Get Access Token with cURL and cmd prompt
[英]How Get a 2 Legged Token Autodesk?
我需要獲得“獲取 2 條腿令牌”驗證才能以只讀訪問權限上傳其他用戶輸入的文件,但我遇到了以下錯誤:
{ “developerMessage”:“請求中不存在所需的參數 client_id、client_secret、grant_type”、“errorCode”:“AUTH-008”、“更多信息”:“https://forge.autodesk.com/ zh/docs/oauth/v2/developers_guide/error_handling/" }
我完全按照網站上的示例更改了我的“客戶 ID”和“客戶密碼”:
https://forge.autodesk.com/en/docs/oauth/v1/tutorials/get-2-legged-token/
有誰能夠幫我?
curl 的 header 中的單引號格式錯誤。
試試這個格式
curl --location --request POST 'https://developer.api.autodesk.com/authentication/v1/authenticate' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id=your_client_id_xxx' \
-d 'client_secret=your_client_secret_xxx' \
-d 'grant_type=client_credentials' \
-D 'scope=data:read'
我正在使用Postman進行 HTTP 調用。 更方便
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.