get New Album Releases
abstract suspend fun getNewAlbumReleases(limit: Int = 20, offset: Int = 0): SpotifyApiResponse<NewAlbumReleases, ErrorBody>(source)
Get new album releases API returns all the new album releases. 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 NewAlbumReleases.isNext.
See the Spotify doc.
Return
NewAlbumReleases when success and ErrorBody when error.
Parameters
limit
offset