Last active
August 29, 2015 14:16
-
-
Save tjanczuk/c9917a38effc2338e9b5 to your computer and use it in GitHub Desktop.
call_sandbox.html
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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script> | |
$(function () { | |
$.post({ | |
url: 'https://sandbox-dev.it.auth0.com:8721/auth0?name=Tomek', | |
headers: { | |
Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6IjEifQ.eyJqdGkiOiI5YWRmYTA4NmY5ZmE0ZmZmYmIzYjFiMzIzODc1N2NhMSIsImlhdCI6MTQyNDc1ODgzNiwidXJsIjoiaHR0cHM6Ly9naXN0LmdpdGh1YnVzZXJjb250ZW50LmNvbS90amFuY3p1ay81ODI4Yzc3ZTI1OWU1ZGU0OWRhYi9yYXcvNWUyMWM1ZjljYTZmZDE5MWFhYzdhMmNhYmM5MjgwOGJiMDQwMmE0ZS9XVDEuanMiLCJlY3R4IjoiRXVHai9LYzRNWHpsSGIvQ01RS3c1UT09LklhK24yeTRRd1lSWVRPVVd1VVRCanc9PSJ9.MQSxTFrUcMc4uXZ41lHNL22q1f0sa_wC2jrseFkoFFA' | |
} | |
}).done(function (data) { | |
alert('RESULT: ' + JSON.stringify(data)); | |
}).error(function (error) { | |
alert('ERROR: ' + JSON.stringify(error)); | |
}); | |
}); | |
</script> | |
</head> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment