我想知道是否有API可以检索(翻译/发布)日期:

发布于 2021-02-19 12:20:58
通过调用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"
},
//...
},
//...
],https://stackoverflow.com/questions/66258296
复制相似问题