There doesn't seem to be much use since the API is only available in the
non-production version.
The documentation on it is missing, but I think that's because there is
still work being done on it. There is an excellent /integrations page, but
it only give examples. That said, here's what I've gathered about it:
It is only available as an XML-RPC. The methods available are
- NewTodo ( userName, token, contextID, description, notes) - This
adds a todo to a context
- NewRichTodo (userName, token, defaultContextID, description, notes)
- This adds a todo, but it has a specific purpose that I'm unaware of.
- ListContexts (userName, token) - Lists all Contexts
- ListProjects (userName, token) - Lists all Projects
I'm attaching a very basic patch to add another method to this list:
ListTodos (username,token) - Lists all Todos
I'm still figuring my way around rails, but this was simple enough to
accomplish. I may try to add some more specific ListTodo methods, such as
by Context and Project to save on the processing side of the client. Any
help on what it takes to filter the list of todos down on the web services
level would be appreciated
On Nov 19, 2007 2:55 PM, James Kebinger <[EMAIL PROTECTED]> wrote:
> Folks, is there a list of consumers of the tracks API anywhere? Failing
> that, can everyone who knows of one mention it?
> thanks
>
>
> _______________________________________________
> Tracks-discuss mailing list
> [email protected]
> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
>
>
Index: controllers/backend_controller.rb
===================================================================
--- controllers/backend_controller.rb (revision 662)
+++ controllers/backend_controller.rb (working copy)
@@ -54,7 +54,12 @@
@user.projects
end
+
+ def list_todos(username, token)
+ check_token(username, token)
+ @user.todos
+ end
private
# Check whether the token in the URL matches the token in the User's table
Index: apis/todo_api.rb
===================================================================
--- apis/todo_api.rb (revision 662)
+++ apis/todo_api.rb (working copy)
@@ -15,4 +15,8 @@
:expects => [{:username => :string}, {:token => :string}],
:returns => [[Project]]
+ api_method :list_todos,
+ :expects => [{:username => :string}, {:token => :string}],
+ :returns => [[Todo]]
+
end
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss