spotify_ex v2.2.1 Spotify.Paging View Source
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
%Spotify.Paging{} View Source (struct)
Paging Struct. The Spotify API returns collections in a Paging
object, with the collection in the items
key.
response(body, items) View Source
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.