JustinLove/elm-twitch-api/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Elm Twitch Api

Decoders and a few other helpers for using Twitch.tv APIs.

Partial coverage of the APIs I have used, includes most the Helix (new Twitch API) and some additional decoders for unoffical hosts and clips APIS.)

fetchUserByNameUrl : String -> String
fetchUserByNameUrl login =
  "https://api.twitch.tv/helix/users?login=" ++ login


fetchUserByName : String -> Cmd Msg
fetchUserByName login =
  Twitch.Helix.send <|
    { clientId = TwitchId.clientId
    , auth = Nothing
    , decoder = Twitch.Helix.Decode.users
    , tagger = User
    , url = (fetchUserByNameUrl login)
    }

Example applications using this library: