autodesk forge没有';不接受cURL请求范围

autodesk forge没有';不接受cURL请求范围,curl,oauth,autodesk-forge,Curl,Oauth,Autodesk Forge,在获取Forge的初始访问令牌时遇到了问题,看起来我正在按照教程进行操作,但运气不好 我通过Cygwin在windows上运行curl curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' -X 'POST' -H 'Content_Type: application/x-www-form-urlencoded' -d 'client_id=0000000000000000000000000000

在获取Forge的初始访问令牌时遇到了问题,看起来我正在按照教程进行操作,但运气不好

我通过Cygwin在windows上运行curl

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"}
DONE句柄0x600057680;线路1981(连接#0)
*多次完成
*Curl\u http\u done:调用premature==0
*0到主机developer.api.autodesk.com的连接保持不变
{“developerMessage”:“请求的作用域必须为空或提供的作用域的子集。”,“userMessage”:“,“errorCode”:“AUTH-004”,“更多信息”:”http://developer.api.autodesk.com/documentation/v1/errors/AUTH-004"}

不知道发生了什么事。我请求的范围是否确实错误?

您可以查看我在本文中设置的步骤,该步骤还可以通过cURL获得2legged身份验证令牌。我已经用OSX终端和Windows Cygwin测试了这两种方案


JQ肯定会让事情朝着更愉快的方向发展

原来我的问题是我将命令写入was dos的shell脚本的编码。将其设置为Unix可以正确解释我的参数