使用APS Data Management API调用Get Hubs API遇403权限问题,请求协助
权限排查:调用Get Hubs API返回403无权限错误
我需要下载项目内文件,执行了以下操作:
- 在APS控制台创建Web应用程序
- 使用clientId和clientSecret生成authtoken
- 通过网页重定向用户获取其对
data:readAPI的授权,生成授权码 - 使用Basic认证token(步骤2生成)和授权码(步骤3生成)成功生成3-legged token
- 调用Get Hubs API时,收到
You don't have permission to access this API错误
解码后的3-legged token详情:
{ "scope": [ "data:read" ], "client_id": "___MY_CLIENT_ID_WAS_HERE___", "iss": "https://developer.api.autodesk.com", "aud": "https://autodesk.com", "jti": "___HIDDEN___", "exp": 1730795145, "userid": "3L5JHG3YLRVJ6AFN" }
接口响应内容:
{ "jsonapi": { "version": "1.0" }, "links": { "self": { "href": "https://developer.api.autodesk.com/project/v1/hubs" } }, "data": [], "meta": { "warnings": [ { "Id": null, "HttpStatusCode": "403", "ErrorCode": "BIM360DM_ERROR", "Title": "Unable to get hubs from BIM360DM US.", "Detail": "You don't have permission to access this API", "AboutLink": null, "Source": null, "meta": null }, ... ] } }
我确认自己拥有账户全部权限,尝试用2-legged token替代3-legged token调用,结果同样返回403错误。请求协助排查该权限问题。
内容的提问来源于stack exchange,提问作者Tushar.K
相关产品推荐
相关产品推荐

