【问题标题】:Autodesk Forge get access tokenAutodesk Forge 获取访问令牌
【发布时间】:2016-12-20 12:53:51
【问题描述】:

能否帮助我了解我输入的错误内容以创建 read & write 令牌。为了我的安全,我的客户端 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'

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

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

    curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' -X '发布' -H '内容类型:应用程序/x-www-form-urlencoded' -d 'client_id=00000000000000000000000000000000& client_secret=0000000000000000& grant_type=client_credentials& scope=data:read%20data:write%20bucket:create%20bucket:read'

    【讨论】:

    • 非常感谢。哈哈,我一直在旋转我的轮子一段时间了。
    猜你喜欢
    • 2018-01-21
    • 2020-09-17
    • 2021-04-06
    • 2023-03-12
    • 2021-12-27
    • 2020-04-17
    • 2023-03-19
    • 2020-09-14
    • 2021-01-08
    相关资源
    最近更新 更多