+ Add Question

Need help to get all tasks over the api i an array

Hi,

want to create a simple CSV file with all tasks. I don´t have the necessary skills in the API area todo this.

Could please give me a short PHP example, how to get alls tasks in PHP.

I want to copy and paste them to excel... Thanks

All responses

David Trey  staff
Replied on May 27, 2014 - 16:46 UTC

Hello Andreas,

Unfortunately, we don't offer dev-support right now, though if you'd have any specific questions about the functionality of the API itself, we'd gladly assist you.

In general, all data is fetched by making calls to certain URLs triggering certain functions. To get all tasks at once, you'd have to use a query for "viewall", in which case the URL would be:

https://api.todoist.com/API/query?token=xxxxx&queries=["viewall"]

Please replace the xxxxx part with your personal unique API token which you can find in Settings -> Account.

How you then format the returned data is of course up to you.


Best regards,
David

Andreas Friedrich  premium
Replied on May 27, 2014 - 19:06 UTC

thanks... many informations are showing after calling the url. I only want to see the task name and the due date...

It´s very tricky for a non dev-specialist...