问题描述
我想知道是否有一个 API 可以检索(翻译/发布)日期:
解决方法
通过调用 GET Folder Contents、GET items/:itemId 或 GET item/:itemId/versions 获取该项目的最新版本,并找到 attributes.lastModifiedTime
,然后将其从 UTC 时间转换为您的本地时间。下面是一个例子:
"included": [
{
"type": "versions","id": "urn:adsk.wipprod:fs.file:vf.hC6k4hndRWaeIVhIjvHu8w?version=2","attributes": {
"name": "my_model.rvt","displayName": "my_model","createTime": "2018-01-17T11:52:34.0000000Z","createUserId": "BW9RM76WZBGL","createUserName": "John Doe","lastModifiedTime": "2018-01-17T11:53:20.0000000Z",//!<<< Here
"lastModifiedUserId": "BW9RM76WZBGL","lastModifiedUserName": "John Doe","versionNumber": 2,"mimeType": "application/vnd.autodesk.r360","fileType": "rvt","extension": {
"type": "versions:autodesk.bim360:C4RModel","version": "1.0.0","schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/versions:autodesk.bim360:C4RModel-1.0.0"
},//...
},//...
],