Legend

Forum

Unread topics or posts

Topic

Unread posts

Locked

Announcement

Forums > Developers

add.php v2.0 json response



AuthorMessage
Roderick Farrugia

Posted: Nov 11, 2010
Score: 0



Hi,

I am adding a task to a folder successfully, however the response seems to be an invalid JSON response. There is an unnecessary comma at the beginning of the array. Additionally, why is the "length" field being returned?

POST /2/tasks/add.php?key=XXXXXXXX;tasks=%5B%7B%22folder%22:1202693,%22title%22:%22test%20task%20for%20fo lder%20Home%22%7D%5D;fields=folder HTTP/1.1
Accept: text/html, application/json
Content-Length: 0
User-Agent: Java/1.6.0_21
Host: api.toodledo.com
Connection: keep-alive



HTTP/1.1 200 OK
Date: Wed, 10 Nov 2010 20:55:33 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Length: 125
Keep-Alive: timeout=2, max=95
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

[,{"id":"31312963","title":"test task for folder Home","modified":1289422533,"completed":0,"folder":"1202693","length":null}]

Thanks and Regards
Rod.
Toodledo

Administrator
Posted: Nov 11, 2010
Score: 0



Thanks for pointing out these bugs. They have been fixed.


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



Toodledo Forums > Developers

Contact Us | Blog | API | Help | Forums Privacy | Terms | Copyright © 2006-2012