【发布时间】:2021-05-03 10:26:10
【问题描述】:
我在尝试通过 Postman 拨打 Data Connector API 时遇到问题。 执行POST请求提交数据请求时,Postman返回如下错误:
"developerMessage": "The client_id specified does not have access to the api product",
"moreInfo": "https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/",
"errorCode": "AUTH-001"
这是我尝试过的:
- 我创建了一个可以访问所有 API 的 Forge 应用。
- 用户在帐户(拥有许多项目)中拥有执行概览权限。
- 我使用具有 data:read、data:write 和 data:create 范围的 3-legged 身份验证令牌调用 API。
这是我正在使用的代码(从 Postman 导出):
curl --location --request POST 'https://developer.api.autodesk.com/data-connector/v1/accounts/<ACCOUNT_ID>/requests' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <BEARER_TOKEN>' \
--data-raw '
{
"description": "Test Extract",
"scheduleInterval": "ONE_TIME",
"effectiveFrom": "2021-01-30T12:00:00Z",
"serviceGroups": ["admin", "checklists", "dailylogs", "issues", "locations", "submittals", "cost", "rfis"]
}'
您的帮助将不胜感激。谢谢!
【问题讨论】:
标签: autodesk-forge autodesk-bim360