Import users to BIM 360 project using Forge V2 endpoint

前提是你 提交于 2020-01-16 18:50:29

问题


I'm experimenting with the automatic setup of projects in BIM 360 Field using the Autodesk Forge API. The code is designed to run on internal systems and currently uses the two legged authentication method. I've managed to get a project setup, I'm now trying to add a project admin using the recommended V2 import endpoint:

POST projects/:project_id/users/import

As I'm using two legged authentication I'm specifying my x-user-id in the header. When I run this I receive the following error:

{fault.name} - The client_id specified does not have access to the api product

This happens no matter which V2 endpoint I use; even though all services are enabled in the Forge Dev Centre for the app. I've looked at this answer and Mikako's solution works, but this is by using the V1 endpoint, I'd like to be able to use this endpoint, and other V2 endpoints. What could be going wrong with my V2 implementations?


回答1:


I think it is because your project is Field classic. Field classic is a pre-Forge era web services. It's not a part of Forge.

You may try Field API: https://bim360field.autodesk.com/apidoc/index.html#api/v1/project_users_method_3

The newer version of Field is under preview right now for customers who has Field.

For more info about what is Forge, what is not, please refer to this post: https://fieldofviewblog.wordpress.com/2017/01/17/bim-360-and-forge-overview/

or about Field classic in general: https://fieldofviewblog.wordpress.com/forge/



来源:https://stackoverflow.com/questions/48757659/import-users-to-bim-360-project-using-forge-v2-endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!