getRecentlyPlayedTracks

suspend fun getRecentlyPlayedTracks(limit: Int? = null, after: Long? = null, before: Int? = null): PlayHistoryCursorPagingObject?(source)

Gets the recently played tracks of the user

Return

The PlayHistoryCursorPagingObject. Null if either the requirements aren't met or a private session was enabled.

Parameters

limit

The maximum number of items returned. Needs to be between 1 and 50, otherwise it will be 20

after

Timestamp in milliseconds, returns items after this position (not including), either after or before must be present

before

Timestamp in milliseconds, returns items before this position (not including), either after or before must be present