Skip to content

Instantly share code, notes, and snippets.

@boomtrain-support
Created August 31, 2015 16:54
Show Gist options
  • Save boomtrain-support/292fe1da9113c77abcac to your computer and use it in GitHub Desktop.
Save boomtrain-support/292fe1da9113c77abcac to your computer and use it in GitHub Desktop.
GET /notifications/:id - An example request for this endpoint using jQuery
<script>
// Get the details about a Campaign
function getNotificationId() {
// Send a jQuery AJAX request to get the Campaign details
$.ajax({
url: 'https://api.boomtrain.com/notificaions/{id}',
// Replace 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