how to get the urn of the bucket file

别说谁变了你拦得住时间么 提交于 2019-12-11 16:51:08

问题


Please tell me how to get the urn of the bucket file. You can get the urn that is included in the response when uploading to the bucket, but I'd like to obtain the urn of the file already uploaded to the bucket. Is there any way?


回答1:


You can use the GET /buckets/:bucketKey/objects endpoint to get a list of all files in your bucket. In the response, each file will have its objectId (for example, urn:adsk.objects:os.object:mybucket/myfile). Take the objectId and encode it in base64, for example, using https://www.base64encode.org. The encoded string is your URN.



来源:https://stackoverflow.com/questions/52267698/how-to-get-the-urn-of-the-bucket-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!