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).
-
Kraken/V5 Communities.
-
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) }