Created
May 16, 2015 20:40
-
-
Save garbray/aece9888a6ad972e0b0d to your computer and use it in GitHub Desktop.
request api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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