Toodledo > API > Task > タスクの削除

下位ページ

Content


タスクの削除

  • /tasks/delete.php
    • POST
    • 一度に50個までタスクを削除できる
  • リピートタスクの処理(つまり、リピートタスクの「完了」)とは、分けて考える。
    • 削除(/tasks/delete.php) : この先もやらない
    • 完了(編集での completed /tasks/edit.php) : 今回分は完了にして、新たなタスクを生成する。

指定方法(JSONの場合)


成功したら、削除されたid番号が返る。タスクの削除に失敗したら、エラーコード番号とともに返る。
[{"id":1234},{"id":1235},{"errorCode":605,"errorDesc":"Invalid ID number","ref":"5678"}]

指定方法(XMLの場合)


<deleted><id>1234</id><id>1235</id>Invalid ID number</deleted>



Get Deleted Tasks
The "/tasks/deleted.php" API call will enable you to detect when a task was deleted on Toodledo, so you can also delete the task from your application. You can access this via GET or POST.

after : A GMT unix timestamp. Used to find tasks with a deletion date and time after this date and time.

http://api.toodledo.com/3/tasks/deleted.php&access_token=yourtoken&after=1234567890
This returns a list of id numbers and datetime stamps.

[{"num":24},{"id":1234,"stamp":1234567891},{"id":1235,"stamp":1234567892}]
You can also specify xml as the output format for any API calls.


<deleted num="2">
<task>
<id>12345</id>
<stamp>1234567891</stamp>
</task>
<task>
<id>67890</id>
<stamp>1234567892</stamp>
</task>
</deleted>
最終更新:2015年07月04日 18:30