Add integration with Nanowrimo for word count
kinabalu opened this issue · 4 comments
kinabalu commented
Not a small lift but as long as users have a project in Nanowrimo and we allow them to select it by calling /projects
and grabbing the id of that project we should be able to POST to /project-sessions
with an updated count
Workflow I'm thinking of:
- Login to Nanowrimo from settings which after success (save the Authorization key returned for header) and UI shows their username and allows to logout (delete Authorization key from settings)
- We can have a flag to auto-update Nanowrimo word count at the end of every sprint and show some status perhaps?
- ???
- Profit
kinabalu commented
Latest commit to branch will login to nanowrimo given user/pass and then show you the list of projects and allow you to select from
kinabalu commented
Will create an issue for this but not sure how to kick an update to settings which we'll need to figure out
kinabalu commented
We also need to grab project-challenges relationship prior to updating as the POST for that requires that relationship to also be passed, so we'll have to add that to the NanowrimoApi class
kinabalu commented
Couldn't help myself, done.