get Album Tracks
abstract suspend fun getAlbumTracks(id: String, market: String? = null, limit: Int = 20, offset: Int = 0): SpotifyApiResponse<AlbumTracks, ErrorBody>(source)
Get album tracks API returns all the tracks in an album. This is a paginated API.
offset
is the page you are requesting for. Initially it will be 0.
You will have to increment it for subsequent pages.
You can know if there are more pages from Tracks.isNext.
See the Spotify doc.
Return
AlbumTracks when success and ErrorBody when error.
Parameters
id
market
limit
offset