NEUROFUSIONInc / fusion

Local-first behavior tracking and brain recording app. Discord: https://discord.gg/sqsuzXWE3K
https://usefusion.ai/research
Other
35 stars 8 forks source link

Integration for fetching user music listening history #12

Open oreHGA opened 1 year ago

oreHGA commented 1 year ago

We already have a flow to:

We should integrate an OAuth flow to the spotify api that allows us to fetch listening history for a user periodically and update:

https://github.com/dgendill/spotify-play-history has a good javascript example for connecting to spoify api and fetching periodically.

Data should be stored in remote blob (if user consents) - /y/m/d/-listening_history.json

oreHGA commented 1 year ago

https://developer.spotify.com/documentation/web-api/reference/get-recently-played

oreHGA commented 1 year ago

Fell off the wagon here but I'm back now, I'll make a PR later tonight with the backend pieces for this : https://developer.spotify.com/documentation/web-api/tutorials/code-flow