Recently, I was trying to understand how Discord implemented Spotify on their server and noticed it was something totally different (websocket connection).
As i'm a curious person, I decided to re-do the same process as Discord does but when creating a subscription on this API (which will notice you of current playing through websocket): https://api.spotify.com/v1/me/notification/player, i'm getting an "unathorized". If I use an access_token from Discord, it works fine.
I thought I was doing something wrong (bad access_token etc) but apparently, it seems only Discord is allowed to use this API (maybe i'm wrong).
My question is: If a big company decides to implement the same way as Discord (and not through API because they want real time stuff), how should they do it? Do they need to contact Spotify personally?
Thank you for your answer/help.
Solved! Go to Solution.