We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm calling
spotify.Client.GetPlaylistItems(ctx, id, spotify.Fields("items(track(id))"))
and I get the error:
unrecognized item type:
I'm assuming this is because it's expecting to decode the rest of the fields that don't exist.
I'd expect it to just give me back tracks with only the id populated.
The text was updated successfully, but these errors were encountered:
I'm confused what spotify.Fields("items(track(id))") is in your case, are you passing a valid spotify playlist ID?
spotify.Fields("items(track(id))")
Sorry, something went wrong.
Yeah, the playlistID is valid. The call works fine without the Fields parameter. See the code here.
I'm trying to use this endpoint as follows:
I see, the unmarshaling of the JSON expects the item type, using the filter its missing in func (t *PlaylistItemTrack) UnmarshalJSON.
func (t *PlaylistItemTrack) UnmarshalJSON
Also it doesnt work for filters like spotify.Fields("items(track(name))").
spotify.Fields("items(track(name))")
I guess when using a Field it can't be expected that the PlaylistItemTrack matches the received JSON.
PlaylistItemTrack
So is there something we can do about this or is it a lost cause? Do other endpoints play nicely with the fields param?
No branches or pull requests
I'm calling
and I get the error:
I'm assuming this is because it's expecting to decode the rest of the fields that don't exist.
I'd expect it to just give me back tracks with only the id populated.
The text was updated successfully, but these errors were encountered: