To set up the Todoist API in a new script, open up a new Python script and enter the following code: from todoist.api import TodoistAPI from datetime import datetime api = TodoistAPI("XXXXXX") api.sync() print(api.state)įirst, you’ll want to import Todoist API. With this setup taken care of, time to code. At the very least, create a new project to store your automated tasks, and make a note of its ID. Seeing how the core features work might help to give you some ideas about what kind of tasks to automate later. You can find this by logging into the Todoist web app, clicking on your profile picture in the top-right hand corner, and then selecting ‘Integrations’ your API token is clearly marked on this screen.įinally, I’d recommend playing around with Todoist a little bit if you’re new to it. This is a unique string of characters that the API uses to identify your account. Next, you’ll need to find your Todoist account’s API token. You can install the API via pip using the shell command $ pip install todoist-python. Here, you’ll see all the instructions you need to perform actions to your account using the API. Once you do that, you’ll want to head over to the Todoist API documentation site. This is pretty simple, and won’t take you long at all. Although I don’t use Todoist as my primary organising tool anymore, it’s still my favourite standalone to-do list app.įirst, you’ll want to make a Todoist account. It does everything you’d want a to-do-list to do: you can assign task priorities, group tasks by projects, set deadlines, and so on. Todoist is a really neat digital to-do-list. So long as you run the script regularly, you’ll wake up each morning to a tailor-made task list for you to tackle. By using a common online to-do list in conjunction with a Python script, it’s easy to set up custom repeating alerts based on a ton of different conditions. If you’re like me, thankfully you can fix this with a little basic code. Having a global pandemic in the background doesn’t help my mental capacity either. When life gets hectic, minor responsibilities like watering houseplants, taking out the bins, and cleaning your computer often get forgotten.Įven as someone who researches human memory for a living, I still suck at keeping track of things like this. It’s easy to forget about the little things in your routine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |