2

有些人可以帮助我了解我输入错误的内容以创建读写令牌。为了我的安全,我的客户端 ID 和客户端密码中的类型为零,所以我知道这不是问题。如果你能给我一个清晰的例子,那会很有帮助。我被困了一段时间。Autodesk 示例只有一个阅读示例。

curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' 
-X 'POST' 
-H 'Content-Type: application/x-www-form-urlencoded' 
-d 'client_id=00000000000000000000000000000000&
client_secret=0000000000000000&
grant_type=client_credentials&
scope=data:read, data:write, bucket:create, bucket:read'
4

1 回答 1

3

您需要将 ', ' 替换为 '%20'。这是因为您说数据是 x-www-form-urlencoded。

curl -v ' https://developer.api.autodesk.com/authentication/v1/authenticate ' -X 'POST' -H 'Content-Type: application/x-www-form-urlencoded' -d 'client_id=00000000000000000000000000000000& client_secret=0000000000000000& grant_type=client_credentials& scope=data:read%20data:write%20bucket:create%20bucket:read'

于 2016-08-13T19:30:47.953 回答