+ Add Question

"7 days" does not work in Query API

http://todoist.com/API/query?queries=["7 days"]&token=fb5f22601ec566e48083213f7573e908a7a272e5

returns

Bad Request

Unknown error happened: time data u'7 days' does not match format '%Y-%m-%dT%H:%M:%S'

All responses

David Trey staff
Replied on Jan 08, 2012 - 08:02

Hello Omar,

unfortunately, "7 days" is not supported by /API/query. If you want to use it, pass your days as correctly formated dates, e.g.:

http://todoist.com/API/query?queries=["2007-4-29T10:13","2007-5-29T10:13"]


Best regards,
David