Qeasy Cloud
Get Started

BIMOpenAPI接口调用指南

Source: Qeasy Cloud80 views

获取接口信息及调用方法

1. 获取授权用户信息

联系系统开发人员以获取必要的授权用户信息。例如:

  • bimRemoteUser: 123456789
  • bimRemotePwd: 123456789

2. 接口请求地址

所有接口请求地址默认都是小写,请注意格式。以下是一些常用的接口地址,均为POST请求:

  1. {host}/api/open/bimopenapi/{{方案ID}}/schemaservice 自定义字段接口
  2. {host}/api/open/bimopenapi/{{方案ID}}/orgcreateservice 创建组织
  3. {host}/api/open/bimopenapi/{{方案ID}}/orgupdateservice 更新组织
  4. {host}/api/open/bimopenapi/{{方案ID}}/orgdeleteservice 删除组织
  5. {host}/api/open/bimopenapi/{{方案ID}}/usercreateservice 创建用户
  6. {host}/api/open/bimopenapi/{{方案ID}}/userupdateservice 更新用户
  7. {host}/api/open/bimopenapi/{{方案ID}}/userdeleteservice 删除用户

其中,{host} 表示服务接口地址,通常为当前域名; {{方案ID}} 表示对应的方法ID。

3. 调用接口方法

使用POST方式调用上述接口。在管理数据时可以写入相应的数据。请注意,如果数据已经存在,则不允许更新。

API调用示例

示例代码块

import requests

url = "{host}/api/open/bimopenapi/{方案ID}/usercreateservice"
data = {
    "username": "new_user",
    "password": "secure_password"
}
response = requests.post(url, json=data)
print(response.json())

以上就是如何获取和调用这些API的详细步骤。

Copyright Notice

The article "BIMOpenAPI接口调用指南" is original content owned by 广东轻亿云软件科技有限公司. Reposting, quoting, copying or mirroring is strictly prohibited without written authorization. Please contact us for authorization and credit the author and source (including the original link) prominently.