Skip to content

Instantly share code, notes, and snippets.

@aronwoost
Created April 24, 2015 14:27
Show Gist options
  • Save aronwoost/116c17f9d98ae2c61eb7 to your computer and use it in GitHub Desktop.
Save aronwoost/116c17f9d98ae2c61eb7 to your computer and use it in GitHub Desktop.
fetch.js POST test
// copy-paste into console
fetch('https://api.github.com/gists', {
method: 'post',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Hubot',
login: 'hubot',
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment