This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
GET /v1/search?query=track%3A{}+artist%3A{}&type=track&offset=0&limit=20
Expected behaviour:
A new song must be added to the Spotify library in a new playlist
Actual behaviour:
Traceback (most recent call last):
File "spotify_youtube.py", line 168, in
cp.add_song_to_playlist()
File "spotify_youtube.py", line 160, in add_song_to_playlist
raise ResponseException(response.status_code)
exceptions.ResponseException: Response gave status code 400
Hey, As I am using Spotify API to add youtube liked songs in my private library playlist.
The codes for the following functions are the following:
`def add_song_to_playlist(self):
populate dictionary with our liked songs
create a new playlist
add all songs into new playlist
Endpoint(s):
POST /v1/users/{}/playlists
POST /v1/playlists/{}/tracks
GET /v1/search?query=track%3A{}+artist%3A{}&type=track&offset=0&limit=20
Expected behaviour:
Actual behaviour:
Traceback (most recent call last): File "spotify_youtube.py", line 168, in
cp.add_song_to_playlist()
File "spotify_youtube.py", line 160, in add_song_to_playlist
raise ResponseException(response.status_code)
exceptions.ResponseException: Response gave status code 400