spotify_client/recently_played

Types

pub type Cursors {
  Cursors(after: String, before: String)
}

Constructors

  • Cursors(after: String, before: String)
pub type PlayHistoryObject {
  PlayHistoryObject(track: track.Track, played_at: String)
}

Constructors

  • PlayHistoryObject(track: track.Track, played_at: String)
pub type RecentlyPlayed {
  RecentlyPlayed(
    items: List(PlayHistoryObject),
    limit: Int,
    total: Int,
    cursors: Cursors,
  )
}

Constructors

  • RecentlyPlayed(
      items: List(PlayHistoryObject),
      limit: Int,
      total: Int,
      cursors: Cursors,
    )

Functions

pub fn recently_played(
  client: SpotifyClient(UserAuthentication),
) -> Result(RecentlyPlayed, SpotifyError)
pub fn to_json(recently_played: RecentlyPlayed) -> Json
Search Document