get Recently Played Tracks
suspend fun getRecentlyPlayedTracks(limit: Int? = null, after: Long? = null, before: Long? = null): SpotifyApiResponse<RecentlyPlayedTracks>
Gets the current user's recently played tracks.
Return
Wrapped Spotify API response with status code and parsed Spotify payload.
Parameters
limit
Maximum number of items to return in one page.
after
Cursor for fetching items played after a specific timestamp.
before
Cursor for fetching items played before a specific timestamp.
suspend fun getRecentlyPlayedTracks(limit: Int?, after: Int?, before: Int?): SpotifyApiResponse<RecentlyPlayedTracks>
Deprecated
Use Long for `after`/`before` unix timestamp in milliseconds.
Replace with
getRecentlyPlayedTracks(limit = limit, after = after?.toLong(), before = before?.toLong())Content copied to clipboard
Gets the current user's recently played tracks.
Return
Wrapped Spotify API response with status code and parsed Spotify payload.
Parameters
limit
Maximum number of items to return in one page.
after
Cursor for fetching items played after a specific timestamp.
before
Cursor for fetching items played before a specific timestamp.