Skip to content

Instantly share code, notes, and snippets.

@PaulHalliday
Created June 7, 2018 04:12
Show Gist options
  • Save PaulHalliday/c874b766797f98ee2236ef13317d68ac to your computer and use it in GitHub Desktop.
Save PaulHalliday/c874b766797f98ee2236ef13317d68ac to your computer and use it in GitHub Desktop.
Label Name and ID
# More information can be found on labels here: https://developer.todoist.com/sync/v7/#labels
import todoist
api = todoist.TodoistAPI("0123456789abcdef0123456789abcdef01234567")
api.sync()
labels = api.labels.all()
for l in labels:
print("Name: {0}, ID: {1}".format(l['name'], l['id']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment