View Source Spotify.Paging (spotify_ex v2.4.0)
Spotify wraps collections in a paging object in order to handle pagination.
Requesting a collection will send the collection back in the items key,
along with the paging links.
Link to this section Summary
Functions
Paging Struct. The Spotify API returns collections in a Paging
object, with the collection in the items key.
Takes the response body from an API call that returns a collection. Param items should be structs from that collections types, for example getting a collection playlists, items should be [%Spotify.Playlist{}, ...] Replaces the map currently items with the collection.
Link to this section Functions
Paging Struct. The Spotify API returns collections in a Paging
object, with the collection in the items key.
Takes the response body from an API call that returns a collection. Param items should be structs from that collections types, for example getting a collection playlists, items should be [%Spotify.Playlist{}, ...] Replaces the map currently items with the collection.
Not every collection is wrapped in a paging object.