使用Forge V2端点将用户导入BIM 360项目 [英] Import users to BIM 360 project using Forge V2 endpoint

查看:48
本文介绍了使用Forge V2端点将用户导入BIM 360项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Autodesk Forge API在BIM 360 Field中自动设置项目.该代码旨在在内部系统上运行,当前使用

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项目/:project_id/users/import

当我使用两条腿身份验证时,我在标题中指定了 x-user-id .运行此命令时,出现以下错误:

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}-指定的client_id无权访问api产品

无论我使用哪个V2端点,都会发生这种情况;即使在Forge开发中心中为该应用程序启用了所有服务.我查看了此答案,Mikako的解决方案有效,但这是通过使用V1端点,我希望能够使用此端点和其他V2端点.我的V2实施可能会出什么问题?

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?

推荐答案

我认为这是因为您的项目是Field经典的.Field Classic是Forge时代之前的Web服务.它不是Forge的一部分.

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.

您可以尝试使用Field API: https://bim360field.autodesk.com/apidoc/index.html#api/v1/project_users_method_3

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

具有Field的客户现在正在预览Field的较新版本.

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

有关什么是Forge,什么不是Forge的更多信息,请参阅以下文章: https://fieldofviewblog.wordpress.com/2017/01/17/bim-360-and-forge-overview/

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/

或关于Field classic: https://fieldofviewblog.wordpress.com/forge/

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

这篇关于使用Forge V2端点将用户导入BIM 360项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆