spotify_ex v2.0.4 Paging

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.

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

Functions

__struct__()

Paging Struct. The Spotify API returns collections in a Paging object, with the collection in the items key.

response(body, items)

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.