2017-03-13 9 views
0

Forgeの初期アクセストークンを取得するのに問題がありますが、私はチュートリアルをTに従っているようですが、運はありません。autodesk-forgeはcURLリクエストスコープを受け入れません

https://developer.autodesk.com/en/docs/oauth/v2/reference/http/authenticate-POST/

私はCygwinのを経由してWindows上でカールを実行していますよ。私は取り戻す何

curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' -X 'POST' -H 'Content_Type: application/x-www-form-urlencoded' -d 'client_id=000000000000000000000000000000000&client_secret=0000000000000000&grant_type=client_credentials&scope=data:read' 

...

< HTTP/1.1 400 Bad Request 
< Content-Type: application/json 
< Date: Mon, 13 Mar 2017 03:50:00 GMT 
* Server Apigee Router is not blacklisted 
< Server: Apigee Router 
< Content-Length: 210 
< Connection: keep-alive 
< 
* STATE: PERFORM => DONE handle 0x600057680; line 1981 (connection #0) 
* multi_done 
* Curl_http_done: called premature == 0 
* Connection #0 to host developer.api.autodesk.com left intact 
{"developerMessage":"Requested scopes must be blank or a subset of the provided scopes.","userMessage":"","errorCode":"AUTH-004","more info":"http://developer.api.autodesk.com/documentation/v1/errors/AUTH-004"} 

何が起こっているのかわかりません。要求された範囲が実際に間違っていますか?

答えて

0

感謝。そこにいくつかの素晴らしい情報があります。 JQは確かに物事をより楽しいものにするでしょう。

私の問題は、コマンドを書いていたシェルスクリプトのエンコードがdosだったことが判明しました。これをunixに設定すると、argが正しく解釈されるようになりました。

関連する問題