Autodesk Forge数据交换API

发布于 2025-01-21 14:08:31 字数 1067 浏览 0 评论 0原文

我正在关注 https://forge.autodesk.com/ en/docs/fdx/v1/tutorials/1_access_exchange_container/教程。 我已经运行了curl'https://developer.autodesk.com/data/v1/projects/'qunproject_id'/folders/folders/'qulter_ide_id'/contents'--header'- -header'授权:要使用项目类型获取项目ID:autodesk.bim360:fdx

    "data": [
        {
            "type": "items",
            "id": "urn:adsk.wipprod:dm.lineage:9k_QlS2qQTuBZaBiiBKcHQ",
            "attributes": {
                ...
                "extension": {
                    "type": "items:autodesk.bim360:FDX",
                    

但是,当我试图使用curl'https://developer.autodesk.com/exchange/v1/exchanges?filters = attribute.exchangefileurn ='$ iTEM_ITEM_ -HEADER -HEADER'授权时:bearer' $ token带有我较早的item_id,我得到的是“指定的client_id无权访问API产品”错误。 该应用程序已被规定用于使用数据交换API。

您知道是否需要特定访问此API的访问?

I'm following the https://forge.autodesk.com/en/docs/fdx/v1/tutorials/1_access_exchange_container/ tutorial.
I've run the curl 'https://developer.api.autodesk.com/data/v1/projects/'$PROJECT_ID'/folders/'$FOLDER_ID'/contents' --header 'Authorization: Bearer '$TOKEN command to get the id of the item with type of items:autodesk.bim360:FDX

    "data": [
        {
            "type": "items",
            "id": "urn:adsk.wipprod:dm.lineage:9k_QlS2qQTuBZaBiiBKcHQ",
            "attributes": {
                ...
                "extension": {
                    "type": "items:autodesk.bim360:FDX",
                    

However, when I'm trying to get the data exchange container using the curl 'https://developer.api.autodesk.com/exchange/v1/exchanges?filters=attribute.exchangeFileUrn=='$ITEM_ID --header 'Authorization: Bearer '$TOKEN with the ITEM_ID I've got earlier, I'm getting the "The client_id specified does not have access to the api product" error.
The app has been provisioned to use the Data Exchange API.

Do you know if there is specific access to this API that needs to be requested?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

遮了一弯 2025-01-28 14:08:31

创建Forge App时,请确保选择数据交换API如图所示:

”

如果您已经创建了Forge应用程序,则必须进行编辑,以启用数据交换,通过单击“编辑”按钮:

”在此处输入图像说明”

When creating the Forge App, make sure that the Data Exchange API is selected as shown bellow:

enter image description here

If you already have a Forge App created, you'll have to edit it, to enable the Data Exchange API, by clicking "EDIT" button:

enter image description here

也只是曾经 2025-01-28 14:08:31

创建了一个新的应用程序,该应用程序用不同的帐户进行了认证,现在旧的应用程序也可以正常工作。

Created a new app, authenticated with a different account with an active subscription and now the old app works as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文