Doozoon API

Doozoon supports a REST API for todo list tasks.

doozoon.com/login-user

Accepts a user name and password and returns JSON data that includes the login cookie token as well as user preferences.

Parameters
Returns

doozoon.com/task-list

Returns a JSON formatted list of tasks for the logged in user

Parameters
Returns

A list of tasks. Each task may have the following fields:

doozoon.com/task-store

Saves a task

Parameters

If more than one task needs to be saved, multilpe task parameters may be used on a single call.

The only required field in a task is the name. If the created field is not present, a new task will be created. The modified field must match the value currently stored on the server to be able to update an existing task. To delete a task set the status to "DELETED" and store it.

Returns

A JSON array of results, one for each submitted task. Each has:

Example using cURL

# fetch the login cookie
login=`curl -s --data-urlencode "user=USER@EXAMPLE.COM" --data-urlencode "pass=PASSWORD" http://doozoon.com/login-user | grep -oE 'login[^"]+'`
echo "login=$login"
# fetch a list of tasks
curl -s --data-urlencode "login=$login" 'http://doozoon.com/task-list'
# create a new task
curl -s --data-urlencode "login=$login" --data-urlencode 'task={"name":"This is the name of a new task"}' 'http://doozoon.com/task-store'