Last active
August 18, 2021 05:25
-
-
Save hugosenari/f0e7495872dc9c2f00f5acfa26eb6dd0 to your computer and use it in GitHub Desktop.
random gif from giphy
This file contains hidden or 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
{ token, rating ? "pg-13", tag ? "so-excited", timestamp ? "n" }: | |
let | |
random_gif_response = builtins.fetchurl { | |
url = "https://api.giphy.com/v1/gifs/random?api_key=${token}&tag=${tag}&rating=${rating}&t=${timestamp}"; | |
name = "random_gif_json"; | |
}; | |
random_gif_json = builtins.readFile random_gif_response; | |
in builtins.fromJSON random_gif_json | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: