I have a number of Drafts actions to import active tasks from Todoist which people on this forum have very kindly helped me to compile. They work great.
However, if possible, I’d like to be able to nominate a project and for a pre-determined time frame (start/end), pull back all related tasks completed and the date/time of respective completion.
Now I’ve had a look at both the Todoist API docs and the Drafts Todoist API docs. There is no mention of ‘completed’ in the REST API, but I’m unclear as to whether or not this is the full scope of Drafts’ interaction with the Todoist API.
For instance, this page would suggest that pulling back completed tasks is possible, but with my extremely limited knowledge, I’m unclear as to whether or not this achievable with Drafts.
You should be able to use the request method for the Todoist object, and the until parameter in the API docs section you referenced looks like it should be usable in your JSON payload to check against for completion on or before a specific date/time.
But it is a premium only feature by the looks of it; which means I’m not in a position to build and test an example call
This sounds fab. Cheers. However, Trying it out, it’s asking for username and password. Can’t it just pick up the Todoist API credentials/token which Drafts is already uing/aware of?
I guess you might have called them something different in another script? I’ve got lots of Todoist scripts and have only had to enter the credentials once.