Created
August 31, 2015 17:24
-
-
Save boomtrain-support/b29617b5b0e37afdc386 to your computer and use it in GitHub Desktop.
GET /notifications/ - An example request for this endpoint 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> | |
| // Get a list of Campaigns | |
| function getNotifications() { | |
| // Send a jQuery AJAX request to get the Campaigns | |
| $.ajax({ | |
| url: 'https://api.boomtrain.com/notificaions', | |
| // 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