1

According to the Client Credentials Flow part of Spotiy's web api authorization guide, I made the following request:

POST https://accounts.spotify.com/api/token
grant_type=client_credentials
Authorization: Basic Base64.encode(CLIENT_ID + ':' + CLIENT_SECRET)

and

Content-Type: application/json

But get the error:

415 Unsupported Media Type

{
    "error": "server_error",
    "error_description": "Unexpected status: 415"
}

Based on this and this SO questions, I changed the

Content-Type: application/x-www-form-urlencoded

However, I got 400 Bad Request.

Anyone has other possible solutions?

Community
  • 1
  • 1
fluency03
  • 2,637
  • 7
  • 32
  • 62

0 Answers0