如何找到 BIM 360 Docs 文件的 Bucket Key?
How to find Bucketkey for BIM360 Docs files?
我正在尝试根据之前 的回复所建议的找到真实的文件大小。
响应说使用 GET projects/:project_id/folders/:folder_id/contents 在 BIM 360 文档中心查找 hub_id 和 file_id 文件。
每当我使用从 GET 项目中检索到的存储桶 ID/:project_id/folders/:folder_id/contents 返回消息“未找到存储桶”
如何在 BIM 360 文档中找到 bucket_id 个文件?
例如,我的文件信息在 GET https://developer.api.autodesk.com/data/v1/projects/:project_id/folders/:folder_id/contents
时是这样读取的
"type": "items",
"id": "urn:adsk.wipprod:dm.lineage:9tyhLmL0Q0--a3otlFxQZw",
"attributes": {
"displayName": "EQIX-BIM360 TEST-GH_R20.rvt",
"createTime": "2021-02-24T02:33:25.0000000Z",
"createUserId": "9EW2J6HXXX7M",
"createUserName": "Mario Lopez",
"lastModifiedTime": "2021-02-24T02:33:48.0000000Z",
"lastModifiedUserId": "9EW2J6HP9R7M",
"lastModifiedUserName": "Mario Lopez",
"hidden": false,
"reserved": false,
"extension": {
"type": "items:autodesk.bim360:C4RModel",
"version": "1.0.0",
"schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/items:autodesk.bim360:C4RModel-1.0.0"
},
"data": {}
以上数据的哪一部分作为GEThttps://developer.api.autodesk.com/oss/v2/buckets/:bucketKey/objects/:objectKey/details的bucketKey和objectKey,以获得真实的文件大小?
您遗漏了 GET folder contents 对您问题的回复中的必填部分。
请记住,您需要从 included/relationships/storage/data/id
中获取特定文件版本的 ID,因为您可以找到 here.
获得此id后,请参阅here以更好地了解如何检索bucketKey。
您也可以在 included/relationships/storage/meta/href
下找到它,但在这种情况下,您会发现值为 "https://developer.api.autodesk.com/oss/v2/buckets/<bucket key>/objects/...
我正在尝试根据之前
响应说使用 GET projects/:project_id/folders/:folder_id/contents 在 BIM 360 文档中心查找 hub_id 和 file_id 文件。
每当我使用从 GET 项目中检索到的存储桶 ID/:project_id/folders/:folder_id/contents 返回消息“未找到存储桶”
如何在 BIM 360 文档中找到 bucket_id 个文件?
例如,我的文件信息在 GET https://developer.api.autodesk.com/data/v1/projects/:project_id/folders/:folder_id/contents
时是这样读取的"type": "items",
"id": "urn:adsk.wipprod:dm.lineage:9tyhLmL0Q0--a3otlFxQZw",
"attributes": {
"displayName": "EQIX-BIM360 TEST-GH_R20.rvt",
"createTime": "2021-02-24T02:33:25.0000000Z",
"createUserId": "9EW2J6HXXX7M",
"createUserName": "Mario Lopez",
"lastModifiedTime": "2021-02-24T02:33:48.0000000Z",
"lastModifiedUserId": "9EW2J6HP9R7M",
"lastModifiedUserName": "Mario Lopez",
"hidden": false,
"reserved": false,
"extension": {
"type": "items:autodesk.bim360:C4RModel",
"version": "1.0.0",
"schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/items:autodesk.bim360:C4RModel-1.0.0"
},
"data": {}
以上数据的哪一部分作为GEThttps://developer.api.autodesk.com/oss/v2/buckets/:bucketKey/objects/:objectKey/details的bucketKey和objectKey,以获得真实的文件大小?
您遗漏了 GET folder contents 对您问题的回复中的必填部分。
请记住,您需要从 included/relationships/storage/data/id
中获取特定文件版本的 ID,因为您可以找到 here.
获得此id后,请参阅here以更好地了解如何检索bucketKey。
您也可以在 included/relationships/storage/meta/href
下找到它,但在这种情况下,您会发现值为 "https://developer.api.autodesk.com/oss/v2/buckets/<bucket key>/objects/...