JSON Decoders for Helix Game responses
Use these pieces to pull out the parts your application needs.
import Twitch.Helix.Game as Game
import Json.Decode exposing (..)
games : Decoder (List Persist.Game)
games = Game.response game
game : Decoder Game
game =
map3 Game
Game.id
Game.name
Game.boxArtUrlName of the game
Url for box art images
Decode individual records from the api response using the specified decoder
Sample data for games
Id of the game