Curl post requests with Spotify client id & secret return invalid client
Okay, I got it working - passing my client_id and client_secret, separated by a colon, to Base64.strict_encode64
(NOT Base64.encode64
) and then passing that to the above curl request gets a 200 response with an access token. Apparently encode64
was not enough.
I ran into this error when I ran the curl command in my terminal.
-bash: unexpected EOF while looking for matching `"'
Solved by using single quotes instead of double quotes.