Looking for Examples #49
-
Hi, loving this library so far, it's really helped me get over some hurdles in a hurry. Is there any more documentation or examples available? Specifically I'd like to know how to get a single task by id. Is there a method to do this besides pulling the entire collection down and checking each object? Also, I am having trouble updating DueDate in the Task object- I am able to initially set it in the quick add, but this will need to be updated in existing tasks from time to time.. Thanks, great job on this- Mike |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi Mike, For example, in Todoist docs, you can find helpful information about how to get a single task when you go to this section: And in That's why after reading the Todoist Sync API docs, IntelliSense will be your guide: Similarly, you can find a method to update tasks (including due dates) if you navigate a little in IntelliSense's menu: And again, this method is just a wrapper for an endpoint in Todoist API, which you can find documented in the update-an-item section. |
Beta Was this translation helpful? Give feedback.
Hi Mike,
IntelliSense in Visual Studio and VS Code helped me a lot when I was discovering this library for the first time. You will find that the
TodoistClient
class is well commented and it has a structure very similar to Todoist API itself.For example, in Todoist docs, you can find helpful information about how to get a single task when you go to this section:
Sync API -> Items -> Get item info
And in
TodoistClient
, you can get a single task using this method:TodoistClient.Items.GetAsync(ComplexId, CancellationToken)
That's why after reading the Todoist Sync API docs, IntelliSense will be your guide:
Similarly, you can find a method to update tasks (including due dates) if you naviga…