JustinLove/elm-twitch-api/3.0.1

NOTE: the latest version is 7.0.0

Twitch.Tmi.Decode

Decoders for the TMI API at tmi.twitch.tv/hosts Note that this is an unofficial API, requests should be made with Http.send rather than Twitch.Helix.send. Furthermore, TMI does not provide cross-origin headers, so a cross-origin proxy may be required.

type alias Host =
{ hostId : String
, targetId : String
, hostLogin : String
, targetLogin : String
, hostDisplayName : String
, targetDisplayName : String
}

Record for decoded host data

hosts : Decoder (List Host)

Json decoder for hosts

sampleHost : String

sample data for bootstrapping and testing