Hacky script to generate a list of completed tasks from MS Todo using Microsoft's Graph API.
🚀 Launch (3)
Write launch checklist
Refuel the rocket
Feed the pilot
🥪 Lunch (5)
Buy bread
Buy sliced ham
Buy mustard
sudo make sandwich
Have lunch
8 tasks completed between 1970-01-01 & 2038-01-19
- Run
npm i
- Rename
.config.sample.js
to.config.js
- Get an Access Token (see below)
- Paste your Access Token into
.config.js
- Finally, run
node todone
(ornode todone >> todone.txt
)
- Open Graph Explorer
- Click
Sign in to Graph Explorer
and login with your MS/Outlook/365 account - In the main panel, click the
Access token
tab, et voilà!
.config.js
contains some extra options:
ignoreLists
: List names to excludestart
: Earliest date for completed tasksend
: Latest date for completed tasks
- To review how productive I've been this month
- To learn how to use Promises
- An excuse for a product person to do some coding :)