I was trying to use Spotify API by using curl command. First used the web API, clicked search and then entered the artist name. It generated the curl command which I was supposed to run on command prompt.
Whenever I try to run that it is giving me:
{
"error": {
"status": 401,
"message": "Invalid access token"
}
}
https://developer.spotify.com/documentation/web-api/reference/search link from where I generated the code. Can anybody please help and me and let me know I am doing wrong.
if use Git BASH and jq, API call by curl much more easy.
Assign environment variable
for Spotify Credential (CLIENT_ID, CLIENT_SECRET)
Get Access Token
Call Spotify search query