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.boxArtUrl
id : Json.Decode.Decoder Twitch.Helix.GameId
Id of the game
name : Json.Decode.Decoder String
Name of the game
boxArtUrl : Json.Decode.Decoder String
Url for box art images
response : Json.Decode.Decoder a -> Json.Decode.Decoder (List a)
Decode individual records from the api response using the specified decoder
sampleGame : String
Sample data for games