Skip to content

Instantly share code, notes, and snippets.

@garbray
Created May 16, 2015 20:40
Show Gist options
  • Save garbray/aece9888a6ad972e0b0d to your computer and use it in GitHub Desktop.
Save garbray/aece9888a6ad972e0b0d to your computer and use it in GitHub Desktop.
request api
$(function () {
$.ajax({
method: "POST",
url: "http://nativo.herokuapp.com/api/sessions/login?HTTP_API_KEY=51a40exp274U7c2d58",
data: { "email": "darksxd@gmail.com", "password": "demo1234"},
headers: {
'Content-Type': 'application/json',
'API_KEY': '51a40exp274U7c2d58'
}
}).done(function( msg ) {
console.log( "Data Saved: " + msg );
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment