Last active
September 27, 2019 04:19
-
-
Save boombang/c2b595a5dd7ed654c1ab28c667340b55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Json.Decode exposing (Decoder, field, string) | |
gifDecoder : Decoder String | |
gifDecoder = | |
field "data" (field "image_url" string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"type": "gif", | |
"id": "l2JhxfHWMBWuDMIpi", | |
"title": "cat love GIF by The Secret Life Of Pets", | |
"image_url": "https://media1.giphy.com/media/l2JhxfHWMBWuDMIpi/giphy.gif", | |
"caption": "" | |
}, | |
"meta": { | |
"status": 200, | |
"msg": "OK", | |
"response_id": "5b105e44316d3571456c18b3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment