[][src]Function aspotify::endpoints::player::get_recently_played

pub async fn get_recently_played<'_>(
    token: &'_ AccessToken,
    limit: usize,
    after: Option<String>,
    before: Option<String>
) -> Result<Option<TwoWayCursorPage<PlayHistory>>, EndpointError<PlayerError>>

Get current user's recently played tracks (Beta).

Note that a track needs to be played for >30seconds to be included in the play history. Requires user-read-recently-played. Will return None if a private session is enabled.

after and before are Cursor values given the previous time this endpoint was called, to move forward or back in time respectively. Both after and before must not be Some. after is a Unix milliseconds timestamp, and will return everything played after that position, before is the same but returns everything before that position.

Reference.