Skip to content

Instantly share code, notes, and snippets.

@joshwcomeau
Last active August 29, 2015 14:20
Show Gist options
  • Save joshwcomeau/227a0d09be99b00cb684 to your computer and use it in GitHub Desktop.
Save joshwcomeau/227a0d09be99b00cb684 to your computer and use it in GitHub Desktop.
Requesting Kittens like mad!
$.ajax("http://requestkittens.com/cats", {
data: {
emotion: "grumpy",
imageSize: "full",
numOfResults: 10
},
headers: {
'Authorization': <your API key here>
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment