JustinLove/elm-twitch-api/4.3.0

NOTE: the latest version is 7.0.0

Twitch.Kraken.Decode

Decoders for the Kraken API.

Communities

type alias Community =
{ id : String
, avatarImageUrl : String
, coverImageUrl : String
, description : String
, descriptionHtml : String
, language : String
, name : String
, ownerId : String
, rules : String
, summary : String
}

Record for decoded community.

community : Decoder Community

Json Decoder for a community

Subscriptions

type alias Subscription =
{ id : String
, createdAt : Posix
, subPlan : String
, subPlanName : String
, userId : String
, userBio : String
, userCreatedAt : Posix
, userDisplayName : String
, userLogo : String
, userName : String
, userType : String
, userUpdatedAt : Posix
}

Record for decoded community.

subscriptions : Decoder (List Subscription)

Json Decoder for a subscriptions response

subscription : Decoder Subscription

Json Decoder for a subscription

Sample data

Sample data for a community.

Sample data for a community.