JSON Decoders for Helix Follow responses
Use these pieces to pull out the parts your application needs.
import Twitch.Helix.Follow as Follow
import Json.Decode exposing (..)
follows : Decoder (List Follow)
follows = Follow.response follow
follow : Decoder Follow
follow =
map2 Follow
Follow.fromName
(map Time.posixToMillis Follow.followedAt)Name of the user following
Id of the user being followed
Name of the user being followed
Time at which the follow began
Decode individual records from the api response using the specified decoder
Sample data for follows
Id of the user following