JSON Decoders for Helix Clips responses.
Use these pieces to pull out the parts your application needs.
import Twitch.Helix.Clip as Clip
import Json.Decode exposing (..)
clips : Decoder (List Clip)
clips = Clip.response clip
clip : Decoder Clip
clip =
succeed Clip
|> map2 (|>) Clip.id
|> map2 (|>) Clip.url
|> map2 (|>) Clip.embedUrl
|> map2 (|>) Clip.broadcasterId
|> map2 (|>) Clip.thumbnailUrlUrl to view the clip
Url to embend the clip
User id of the channel where the clip is from
User name of the channel where the clip is from
User id who clipped it
User name who clipped it
Id of the video from which the clip was created
Id of the game on record when the clip was created
Language code of the stream
Title of the clip
Times the clip was viewed
Time the clip was created
Thumbnail url
Decode individual records from the api response using the specified decoder
sample data for bootstrapping and testing
Slug id for the clip