Download a Document with Autodesk API

后端 未结 1 863
攒了一身酷
攒了一身酷 2021-01-24 23:24

I\'m trying to download documents from BIM 360 Docs. If I want to download a file with the type \"type\": \"items:autodesk.bim360:File\" I just need to get the buck

相关标签:
1条回答
  • 2021-01-25 00:00

    For BIM 360 Project Folder items, follow the tutorial here to download document.

    Basically you will need to obtain the URN of the document from the relationships.storage.data.id field via GET projects/:project_id/folders/:folder_id/contents.

    For item type items:autodesk.bim360:Document, call GET projects/:project_id/versions/:version_id/relationships/refs to obtain the storage locations:

     "storage": {
              "meta": {
                "link": {
                  "href": "/oss/v2/buckets/wipbucket/objects/urn:adsk.objects:os.object:wip.dm.prod%2F9f8bdc3f-e29c-4ada-ab7b-bb8dfa821163.pdf"
                }
              }
    

    See doc here.

    0 讨论(0)
提交回复
热议问题