Replies: 1 comment 1 reply
-
Hey tscotn, Sorry for the late respons. I removed |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to reduce the number of requests I make to the Spotify API in a playlist management app. I get several playlists at once for several users using the
Playlists.GetUsers()
method in thePlaylistClient
and filter on count of Followers, but because this returns a List ofSimplePlaylist
objects rather thanFullPlaylist
objects, I then need to make a new API request per playlist to get the follower count. I pass in aPlaylistGetUsersRequest
object to limit the fields it returns to just the ones I need.From what I can tell, the Followers field is the only difference between a
SimplePlaylist
object and aFullPlaylist
object, with a lot of common code between the Simple and Full structures in general. Has there been any discussion around making it possible to get Full objects from these paginated/bulk methods likeGetUsers
? Looks like Spotify documentation on simplified object models has been removed on their end.Could be worthwhile to have Full and Simple objects inherit from some abstract common
object and to make methods return generics, or building some other method set for explicitly getting Full objects. If there's some obvious solution I'm missing, I'd appreciate the help! Thanks.
Beta Was this translation helpful? Give feedback.
All reactions