-
Notifications
You must be signed in to change notification settings - Fork 0
Fusion Forge API Notes
Pan, Kevin Zhu edited this page Nov 1, 2021
·
5 revisions
- Most of the operations will require 3-legged OAuth token
https://forge.autodesk.com/en/docs/data/v2/tutorials/download-file/
-
First navigate to the hub -> project -> folder (-> subfolder)
- For our purposes, we know the hub id (Bechtel Center), project (will make a project supporting file syncing service), folders associated with project (one for each machine group) and can ignore subfolders
- Each file (not folder) will have both a
item
andversion
associated with it - API endpoint for getting contents of folder:
https://developer.api.autodesk.com/data/v1/projects/:project_id/folders/:folder_id/contents
-
We can download an item using the get the storage id from the
version
of that item- API endpoint for downloading item:
https://developer.api.autodesk.com/oss/v2/buckets/:bucket_key/objects/:object_name
-
bucket_key
should just be 'wip.dm.prod' -
object_name
gathered from previous step, using theversion
of a file
-
- Returns raw binary
- API endpoint for downloading item:
-
Save binary to a file