Skip to content

Instantly share code, notes, and snippets.

@busbyjon
Created January 14, 2019 08:45
Show Gist options
  • Save busbyjon/3f3561869b74a5569aeb8851d1f1de58 to your computer and use it in GitHub Desktop.
Save busbyjon/3f3561869b74a5569aeb8851d1f1de58 to your computer and use it in GitHub Desktop.
import todoist
import pandas
api = todoist.TodoistAPI()
user = api.user.login('<username>', '<password>')
print(user['full_name'])
response = api.sync()
for project in response['projects']:
print(project['name'])
df = pandas.DataFrame(response['items'])
df['date_added'] = pandas.to_datetime(df["date_added"])
df = df.sort_values("date_added")
print df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment