JSON Decoders for Helix User responses
Use these pieces to pull out the parts your application needs.
import Twitch.Helix.User as User
import Json.Decode exposing (..)
users : Decoder (List User)
users = User.response user
user : Decoder User
user =
map3 User
User.id
User.login
User.displayNameLogin of the user
Name of the user
Type of the user, e.g. staff
Broadcaster type of the user, e.g. affiliate/partner
User's profile description
Profile image url
Channel offline image
Channel view count
Users's email, if the request had appropriate scope to read it
Time account created
Decode individual records from the api response using the specified decoder
Sample data for a user
Id of the user