Todoist Android App Update
by Drew Dahl on Jan.18, 2010, under Projects, Todoist for Android
Well, I think I’ve got the basic GUI layed out in my mind. On top of that, I think I’ve played around with the GUI editor enough to know how to get it to do my bidding.
Finally it’s on to actually making a handler for the Todoist API. For that, I just wrote a couple of simple python scripts for testing so I know what the links have to look like and what the results should roughly be. Here a short example:
#!/usr/bin/python
import urllib
q = urllib.urlencode({‘token’: ‘myToken’})
r = urllib.urlopen(‘http://todoist.com/API/getProjects?’ + q)
print r.read()
This script just forms the link needed and then gets the web response. In any case, using this method, I’ve started making a TodoistAPIHandler class that uses a WebRequest class that I’ve made. So far, I have it getting projects. I suppose the next step is to figure out a good way to hold the JSON data it returns.
To be continued…
