kinabalu / obsidian-word-sprint

Obsidian Word Sprint plugin
MIT License
41 stars 6 forks source link

Add integration with Nanowrimo for word count #32

Closed kinabalu closed 2 years ago

kinabalu commented 2 years ago

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:

  1. 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)
  2. We can have a flag to auto-update Nanowrimo word count at the end of every sprint and show some status perhaps?
  3. ???
  4. Profit
kinabalu commented 2 years ago

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 2 years ago

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 2 years ago

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 2 years ago

Couldn't help myself, done.