How to add the OAuth spotify token in my code?

Well you should refer to the Spotify documentation on how to obtain their token, and how to store it in your code is entirely up to you and what programming language you’re using.

Also keep in mind that if you play Spotify music on your stream, you’ll likely get a DMCA strike and potentially banned from Spotify.