bash - Spotify Web API Malformed json error when using /me/player/play endpoint -


i want use spotify web api play specfic song on 1 of devices. in dev article says use json array. tried doing this:

curl -x put "https://api.spotify.com/v1/me/player/play" -h "authorizatin: bearer {authtoken}" -h "content-type: application/x-www-form-urlencoded" --data "json={\"uris\": [\"spotify:track:0i2qiv9lku6x5zqkn7dzpn\"]}" 

however, getting 400 error code:

{ "error" : { "status" : 400, "message" : "malformed json" } 

if tell me how have send request, that'd great.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -