Helpers for sending Http requests to the Twitch Helix ("new Twitch API") endpoints.
Send a basic request to the Twitch Helix ("new Twitch API") endpoints. Lightweight wrapper around Http, so you can go back to basics if something else is needed. Auth is a token received from an oauth loop.
fetchUserByNameUrl : String -> String fetchUserByNameUrl login = "https://api.twitch.tv/helix/users?login=" ++ login fetchUserByName : String -> String -> Cmd Msg fetchUserByName auth login = Twitch.Helix.Request.send <| { clientId = TwitchId.clientId , auth = auth , decoder = Twitch.Helix.Decode.users , tagger = User , url = (fetchUserByNameUrl login) }
Useful if you need to make your own Http call with additional headers.
Creates the client-id and outh headers.
Twitch.Helix.twitchHeaders clientId auth
Send a basic request to the Twitch Helix ("new Twitch API") endpoints. Lightweight wrapper around Http, so you can go back to basics if something else is needed. Auth is a token received from an oauth loop.