Last active
September 1, 2015 00:40
-
-
Save boomtrain-support/af14a9f329af0c5225f2 to your computer and use it in GitHub Desktop.
GET /person - Retrieve a User by bsin using jQuery
This file contains hidden or 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
<script> | |
// Retrieve a User by bsin | |
function getPersonBSIN() { | |
// Send a jQuery AJAX request to retrieve the User | |
$.ajax({ | |
url: 'https://api.boomtrain.com/person?bsin={bsin}', | |
// Replace with your Username, Password, and App Id | |
headers: { | |
'x-app-id': '{app_id}', | |
'Content-Type': 'application/json', | |
'Authorization': 'Basic ' + btoa('{username}:{password}') | |
}, | |
type: 'GET', | |
success: function(msg) { | |
console.log(msg); | |
} | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment