Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.