TwitchApi.Music.GetSoundtrackCurrentTrack (TwitchApi v0.1.3) View Source

⛔ This module is autogenerated please do not modify manually.

Example request from twitch api docs:

descriptions:

requests:

curl -X GET 'https://api.twitch.tv/helix/soundtrack/current_track?broadcaster_id=1234'
-H'Authorization: Bearer 4a4x78f5wqvkybms7mxfist3jmzul'
-H'Client-Id: t214nt8z1rdtbj69hyarjvh5mi6fh'

Example response from twitch api docs:

descriptions:

responses:

{"data":[{"track":{"artists":[{"id":"B07S7JG3TK","name":"Enoth","creator_channel_id":"39051113"}],"id":"B08D6QFS38","isrc":"CCXXXYYNNNNN","duration":153,"title":"Please stay","album":{"id":"B08D6PMKYL","name":"Summer 2020","image_url":"https://m.media-amazon.com/images/I/51zs1JZY8tL.jpg"}},"source":{"id":"B08HCW84SF","content_type":"PLAYLIST","title":"Beats To Stream To","image_url":"https://m.media-amazon.com/images/I/419WuvMXzEL.jpg","soundtrack_url":"https://soundtrack.twitch.tv/playlist?playlistID=B08HCW84SF","spotify_url":"https://open.spotify.com/playlist/1LOP14236oTUscowY3NvYN"}}]}

Link to this section Summary

Types

The ID of the broadcaster that’s playing a Soundtrack track.

Functions

Description:

BETA Gets the Soundtrack track that the broadcaster is playing.

Link to this section Types

Specs

broadcaster_id() :: %{broadcaster_id: String.t()}

The ID of the broadcaster that’s playing a Soundtrack track.

Link to this section Functions

Specs

call(broadcaster_id()) :: {:ok, Finch.Response.t()} | {:error, Exception.t()}

Description:

BETA Gets the Soundtrack track that the broadcaster is playing.

Required authentication:

Required authorization:

Requires an App access token or User access token.