我尝试使用补丁请求来完成我的任务,我得到任务完成的响应,但它没有在wunderlist应用程序上更新。我做了大约9次修改。我得到一个显示完成的响应,但是当我返回应用程序时,它显示没有更新。这是我对请求的回复:
{
"id": 3898040341,
"created_at": "2018-06-01T10:20:00.703Z",
"created_by_id": 24870738,
"created_by_request_id": "worker:w:w:recurring_task_creator:parent-3858561041",
"recurrence_type": "day",
"recurrence_count": 1,
"due_date": "2018-06-02",
"completed": true,
"completed_at": "2018-06-18T12:30:20.547Z",
"completed_by_id": 24870738,
"starred": false,
"list_id": 350926181,
"revision": 9,
"title": "Turn on computer",
"type": "task"
}
它说我今天完成了它,但应用程序没有更新我的手机,平板电脑或已完成。 请帮忙。感谢。
答案 0 :(得分:0)
没关系,我知道了。任务的ID每次完成时都会更改。这是一个周期性任务。因此,我需要使用新的ID更新当前请求。
ID为3952832467的旧请求结果
{
"id": 3952832467,
"created_at": "2018-06-19T11:42:13.366Z",
"created_by_id": 24870738,
"created_by_request_id": "worker:w:w:recurring_task_creator:parent-3949658004",
"recurrence_type": "day",
"recurrence_count": 1,
"due_date": "2018-06-05",
"completed": true,
"completed_at": "2018-06-19T11:42:55.835Z",
"completed_by_id": 24870738,
"starred": false,
"list_id": 350926181,
"revision": 2,
"title": "Turn on computer",
"type": "task"
}
相同的请求结果,但没有ID 3952834287:
{
"id": 3952834287,
"created_at": "2018-06-19T11:42:56.132Z",
"created_by_id": 24870738,
"created_by_request_id": "worker:w:w:recurring_task_creator:parent-3952832467",
"recurrence_type": "day",
"recurrence_count": 1,
"due_date": "2018-06-06",
"completed": true,
"completed_at": "2018-06-19T14:52:28.644Z",
"completed_by_id": 24870738,
"starred": false,
"list_id": 350926181,
"revision": 2,
"title": "Turn on computer",
"type": "task"
}