0

根据可用于 Microsoft ToDo 任务 API 的文档: https ://docs.microsoft.com/en-us/graph/api/todotasklist-list-tasks?view=graph-rest-1.0&tabs=http

创建新任务“Test2”时——

Timestamp for the task data -
{..
"@odata.etag": "W/\"/Zku8Qkw**uNjgAC1hO29g==\",
"title": "Test2",
"createdDateTime": "2021-07-20T13:34:23.9682368Z",
"lastModifiedDateTime": "2021-07-20T13:34:24.0558524Z",
....

..}

5分钟后验证对象时间戳(lastModifiedDateTime)(这里我们不更新任务数据)

{...
"@odata.etag": "W/\"/Zku8Qk*****AC1hO3BQ==\"",
"createdDateTime": "2021-07-20T13:34:23.9682368Z",
"lastModifiedDateTime": "2021-07-20T13:39:25.349792Z",
}

获取任务列表:

https://graph.microsoft.com/v1.0/me/todo/lists/<taskList_id>/tasks/<task_id>
Authorization: Bearer <token>

Response data-
      {
         "@odata.etag":"W/\"xzyPKP0BiU********==\"",
         "importance":"low",
         "isReminderOn":false,
         "status":"notStarted",
         "title":"Linked entity new task 1",
         "createdDateTime":"2021-07-08T11:15:19.9359889Z",
         "lastModifiedDateTime":"2021-07-08T11:15:20.0614375Z",
         "id":"AQMk**************************D",
         "body":{
            "content":"",
            "contentType":"text"
         }
      }

观察 - odata.etag 也在更新,数据没有任何变化。有人可以检查为什么 MS Todo 任务数据每 5 分钟自动更新一次吗?

4

0 回答 0