The Tasko API is work in progress and functionality will be added as people request it. If you want some functionality, don't hesitate to ask me.

The API is implemented as XML-RPC over HTTP. Authentication happens by passing user id and web service token to XML-RPC parameters. User id and token can be found on your settings page. The token represents your password for use with web services, so don't distribute it.


List all papers

Method name: papers
Parameters: user id (int), token (string)
curl -d "<methodCall><methodName>papers</methodName>
<params>
<param><value><int>1</int></value></param>
<param><value><string>814bf8be7b0dfb37ffd599f3d64c950d9b0dm</string></value></param>
</params></methodCall>" http://taskodone.com/api


Get a paper

Method name: paper
Parameters: user id (int), token (string), paper name (string)
curl -d "<methodCall><methodName>paper</methodName>
<params>
<param><value><int>1</int></value></param>
<param><value><string>814bf8be7b0dfb37ffd599f3d64c950d9b0dm</string></value></param>
<param><value><string>MyPaper</string></value></param>
</params></methodCall>" http://taskodone.com/api


Rename

Method name: rename
Parameters: user id (int), token (string), paper name (string), new paper name (string)
curl -d "<methodCall><methodName>rename</methodName>
<params>
<param><value><int>1</int></value></param>
<param><value><string>814bf8be7b0dfb37ffd599f3d64c950d9b0dm</string></value></param>
<param><value><string>MyPaper</string></value></param>
<param><value><string>NewPaper</string></value></param>
</params></methodCall>" http://taskodone.com/api


Edit

Method name: edit
Parameters: user id (int), token (string), paper name (string), paper body (string)
curl -d "<methodCall><methodName>edit</methodName>
<params>
<param><value><int>1</int></value></param>
<param><value><string>814bf8be7b0dfb37ffd599f3d64c950d9b0dm</string></value></param>
<param><value><string>MyPaper</string></value></param>
<param><value><string>MyProject:
- task 1
- task 2
</string></value></param>
</params></methodCall>" http://taskodone.com/api


New

Method name: new
Parameters: user id (int), token (string), paper name (string), paper body (string)
curl -d "<methodCall><methodName>new</methodName>
<params>
<param><value><int>1</int></value></param>
<param><value><string>814bf8be7b0dfb37ffd599f3d64c950d9b0dm</string></value></param>
<param><value><string>MyPaper2</string></value></param>
<param><value><string>MyProject:
- task 1
- task 2
</string></value></param>
</params></methodCall>" http://taskodone.com/api


Delete

Method name: delete
Parameters: user id (int), token (string), paper name (string)
curl -d "<methodCall><methodName>delete</methodName>
<params>
<param><value><int>1</int></value></param>
<param><value><string>814bf8be7b0dfb37ffd599f3d64c950d9b0dm</string></value></param>
<param><value><string>MyPaper</string></value></param>
</params></methodCall>" http://taskodone.com/api


Example : Python or any language support XML-RPC Client

import xmlrpclib server = xmlrpclib.ServerProxy("http://taskodone.com/api") server.papers(1, "814bf8be7b0dfb37ffd599f3d64c950d9b0dm") -> ['MyPaper', 'MyPaper2']