Announcements

Remove a track from a playlist using API

Reply

Remove a track from a playlist using API

Regular

I'm trying to delete a track from a playlist with python. But it gives an error by the authentication. First I thought it was the scopes but it is added to my apps if i look at my apps. So now i don't now what the problem is.

 

This is my code:

access_token = self.get_access_token() (I know this works because I used it in a search function and got a result)

headers = {'Authorization':'Bearer %s' % (access_token),'Content-Type':'application/json'}

 

Error : 403

 

Can someone explain the problem?

 

 

1 Reply

Re: Remove a track from a playlist using API

Rock Star 16
Rock Star 16

Hey @JustRobbe, help's here!

Sorry for the late reply, hope you're well! I'd love to take a closer look. What scopes have you requested in your authentication? Also, what endpoint(s) are you using to remove the playlist? Let me know!

 

Have a good one,

Hubo

HuboRock Star 16
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.
SUGGESTED POSTS