0
私はそれがここに示したように2本足のトークンを取得しようとしているが失敗しました例からのものがありますが、私は自分のIDと秘密)を使用します。カール2足歩行型のトークンは、(AUTH-008)
curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' -X 'POST' -H 'Content-Type: application/x-www-form-urlencoded' -d ' client_id=obQDn8P0GanGFQha4ngKKVWcxwyvFAGE& client_secret=eUruM8HRyc7BAQ1e& grant_type=client_credentials& scope=data:read'
をしかし、私は得る:
< HTTP/1.1 400 Bad Request
< Content-Type: application/json
< Date: Tue, 15 Nov 2016 10:06:09 GMT
* Server Apigee Router is not blacklisted
< Server: Apigee Router
< Content-Length: 231
< Connection: keep-alive
<
* STATE: PERFORM => DONE handle 0x600057550; line 1965 (connection #0)
* multi_done
* Curl_http_done: called premature == 0
* Connection #0 to host developer.api.autodesk.com left intact
{"developerMessage":"The required parameter(s) client_id,client_secret,grant_type not present in the request","userMessage":"","errorCode":"AUTH-008","more info":"http://developer.api.autodesk.com/documentation/v1/errors/AUTH-008"}
どのように私が取った例から欠落しているパラメータがあることも可能ですサイトから?
私はそこに多くのスペースを持っていたように見えます:ここで
はあなたが達成しようとしている正確に何の作業サンプルです。私は白いスペースに敏感だということを知らなかった。彼らはスペースでトリムやトークンを使用しないのはなぜですか? – shinzou