I want to put all the tracks that i have in a slice inside a new playlist but it throws me a Insufficient client scope
error. This is my code and the client is created with auth
func copyTracksToPlaylist(filteredTracks []spotify.PlaylistItem, client *spotify.Client, ctx context.Context) error {
newPlaylistID := os.Getenv("NEW_PLAYLIST_ID")
filteredSongsIDs := extractTracksIDs(filteredTracks)
return client.ReplacePlaylistTracks(ctx, spotify.ID(newPlaylistID), filteredSongsIDs...)
}
I have seen the posible solution in Python here but i don't know how to translate this to the Go's API by zmb3