Skip to content

Instantly share code, notes, and snippets.

@d3ep4k
Created September 21, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3ep4k/b81577e517f7ddd5697515c51baeb808 to your computer and use it in GitHub Desktop.
Save d3ep4k/b81577e517f7ddd5697515c51baeb808 to your computer and use it in GitHub Desktop.
AJAX POST Metamug
var ajax = new XMLHttpRequest();
ajax.open('POST','https://api.metamug.com/backend/v1.0/resource');
ajax.onload=function(){
console.log(xhr.responseText);
}
ajax.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment