Account Information

The first thing you should do each time you sync with Toodledo is to request the user's account information. This is done via a GET or POST request to the "get.php" API endpoint. This will give you useful information about the user, including various timestamps that you can use to determine if any further action is necessary. If the timestamps havne changed, then the user's account hasn't changed and you do not need to sync antything.

timezone : The number of half hours that the user's timezone is offset from the server's timezone. A value of -4 means that the user's timezone is 2 hours earlier than the server's timezone.

hidemonths : If the task is due this many months into the future, the user wants them to be hidden.

hotlistpriority : The priority value above which tasks should appear on the hotlist.

hotlistduedate : The due date lead-time by which tasks should will appear on the hotlist.

hotliststar : 0 or 1 if the star contributes to the hotlist.

hotliststatus : 0 or 1 if the status contributes to the hotlist.

showtabnums : The user's preference for viewing counters showing the number of tasks in each section.

lastedit_task : A timestamp that indicates the last time that any task was added or edited on this account. You can quickly check this field to determine if you need to download updates.

lastdelete_task : A timestamp that indicates the last time that any task was deleted from this account. You can quickly check this field to determine if you need to identify and remove tasks from your application.

lastedit_folder : A timestamp that indicates the last time that a folder was added, edited or deleted. You can quickly check this field to determine if you need to refresh your cached folder list.

lastedit_context : A timestamp that indicates the last time that a context was added, edited or deleted. You can quickly check this field to determine if you need to refresh your cached context list.

lastedit_goal : A timestamp that indicates the last time that a goal was added, edited or deleted. You can quickly check this field to determine if you need to refresh your cached goal list.

lastedit_location : A timestamp that indicates the last time that a location was added, edited or deleted. You can quickly check this field to determine if you need to refresh your cached location list.

lastedit_notebook : A timestamp that indicates the last time that any notebook was added or edited on this account. You can quickly check this field to determine if you need to download updates.

lastdelete_notebook : A timestamp that indicates the last time that any notebook was deleted from this account. You can quickly check this field to determine if you need to identify and remove notebooks from your application.

Error Codes

Any of the API calls can return error messages. Here is a list of the error messages that you may receive from the account API.

1 : You did not specify a key for authentication.

2 : The authentication key that you provided has expired or is invalid.