Ethazeriel / discord-bot

Horse.
Other
2 stars 0 forks source link

Add Deezer support #100

Open Ethazeriel opened 2 years ago

Ethazeriel commented 2 years ago

https://developers.deezer.com/api

No need for API keys for most requests, although they do support a limited form of the oauth2 flow; presumably we can use that to do playlist exports and such. 50 requests / 5 seconds should be plenty for what we want to do, their documentation is not the worst thing I've ever seen.

Ethazeriel commented 2 years ago

Actually with further reading, their oauth2 setup might not be terrible - the documentation doesn't make any mention of passing the state parameter to prevent CSRF but they do use that in their example code. It looks like they don't give a way to renew our oauth tokens ourselves the way every other platform does, but they do allow us to ask for a token that doesn't expire - maybe we do that?

Ethazeriel commented 2 years ago

@Whuppee This is probably a reasonable place to cut your teeth on acquire2 and oauth2 code if that appeals; if not I've found the process of adding new platform support to be a relatively joyous endeavor and I'll quite happily do so.

Whuppee commented 2 years ago

I should figure out why I don't get notifications for anything, and yes, I'd enjoy giving this a go