Autodesk Forge获取访问令牌

时间:2016-08-13 19:08:45

标签: autodesk-forge

有些人可以帮助我理解我输错的内容,以创建一个读取& amp;写令牌。我的客户端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'

1 个答案:

答案 0 :(得分:3)

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

curl -v'https://developer.api.autodesk.com/authentication/v1/authenticate' -X'POST' -H'内容类型:application / x-www-form-urlencoded' -d'client_id = 00000000000000000000000000000000& client_secret = 0000000000000000&安培; grant_type = client_credentials&安培; 范围=数据:读取%20data:写%20bucket:创建%20bucket:读“

相关问题