+ Add Question

Problems using project_add

JF

Hi,

i cant add a project using the /TodoistSync/v2/sync API. Using the following URL i only get "{}" as response: "http://todoist.com/TodoistSync/v2/sync?api_token=[apiToken]&items_to_sync=[{"type":"project_add","temp_id":"$137649529300399","args":{"name":"Test","item_order":1,"indent":1,"color":1},"timestamp":1376495293003}]"

All responses

David Trey staff
Replied on Aug 14, 2013 - 13:14

Hello Jonah,

I have passed this to the developers, I'll let you know as soon as I hear back from them.


Best regards,
David

David Trey staff
Replied on Aug 14, 2013 - 19:08

Jonah,

According to the developers, temp_id should never be duplicated (as we use them to resolve to real ids) so the problem occurs when you try to use the same "temp_id" parameter in different queries.


Best regards,
David

JF
Jonah Fintz
Replied on Aug 15, 2013 - 03:53

I generate the temp_id dynamically using a timestamp and a random INT between 0 and 99 and it still doesn't work.

Amir Salihefendic staff
Replied on Aug 15, 2013 - 07:20

Hi Jonah

I think it could be because you are sending a GET requests. Try with POST instead.

Best regards,
Amir