Autodesk Forge数据交换API
我正在关注 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建Forge App时,请确保选择数据交换API如图所示:
如果您已经创建了Forge应用程序,则必须进行编辑,以启用数据交换,通过单击“编辑”按钮:
When creating the Forge App, make sure that the Data Exchange API is selected as shown bellow:
If you already have a Forge App created, you'll have to edit it, to enable the Data Exchange API, by clicking "EDIT" button:
创建了一个新的应用程序,该应用程序用不同的帐户进行了认证,现在旧的应用程序也可以正常工作。
Created a new app, authenticated with a different account with an active subscription and now the old app works as well.