Legend

Forum

Unread topics or posts

Topic

Unread posts

Locked

Announcement

Forums > Developers

Adding and editing tasks



AuthorMessage
rickard_1383776028

Posted: Dec 02, 2013
Score: 0



Hi. I'm a little bit confused. The API 2 documentation says to add or edit a task you need to POST the task information as JSON. That's fine, but the documentation then goes on to say that you should pass the JSON as an HTML encoded parameter on the URL.
I don't think that is best practice when it comes to POSTing data. The JSON should be past as the content, but that doesn't seem to work.
How should I do this?
Jake

Toodledo Admin
Posted: Dec 02, 2013
Score: 0



The documentation is a little misleading in that regard. We will fix this. It's difficult to write an example that shows a POST, so the examples show a GET request instead to give you an idea what the parameter names are. You should be sending the data as a POST. I don't know what language you are using, so you'll need to consult the documentation to figure out how to do a post.

One tip is to send the form with "application/x-www-form-urlencoded" encoding, not "multipart/form-data"
You cannot reply yet


To participate in these forums, you must be signed in.



Toodledo Forums > Developers

Contact Us | Blog | API | Jobs | Press | Documentation | Forums Privacy | Terms | Copyright © 2004-2014