Created
August 31, 2015 17:11
-
-
Save boomtrain-support/5afb72f4f94f510f8bf4 to your computer and use it in GitHub Desktop.
API Authentication - An example to request an OAuth token using jQuery
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
$.ajax({ | |
url: 'https://api.boomtrain.com/tokens', | |
headers: { | |
'x-app-id': '{app_id}', | |
'Authentication': 'Basic ' + btoa('{username}:{password}') | |
}, | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment