M
M
muhasa2017-08-07 13:41:53
PHP
muhasa, 2017-08-07 13:41:53

Todoist API - how to get all posts with a specific tag?

Hello.
The task is to pull all tasks with specific tags from todoist (todoist.com) with a php script
In general terms (without tags), the task is easily solved like this:

$url = "https://todoist.com/api/v7/sync";
$post_data = [
    'token' => "ace72b3c3c3e2995c95b7f383f2a13397b893547",
    'sync_token' => "*",
    'resource_types' => '["items"]'
]; // и дальше curl'ом...

But I can't find a way in the official documentation that would allow me to pull records with specific labels (tags). And I never believe that there is no such possibility, I'm just sure that I'm looking in the wrong place.
May I ask the community to take a peek at the Todoist API to see the obvious?..
Todoist white paper

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
muhasa, 2017-08-08
@muhasa

Support Response:
Hello,
Unfortunately, we don't support filters in our API at the moment, but we will soon release a Rest API that will have this option.
Best regards,
Galina

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question