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

pub async fn get_playing_track<'_>(
    token: &'_ AccessToken,
    market: Option<Market>
) -> Result<Option<CurrentlyPlaying>, EndpointError<PlayerError>>

Get the current user's currently playing track (Beta).

Requires user-read-currently-playing and/or user-read-playback-state. Returns None if no available devices are found, no tracks are playing, or a private session is enabled.

Reference.