Ruby code for Spotify keys token exchange.