Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save boomtrain-support/5afb72f4f94f510f8bf4 to your computer and use it in GitHub Desktop.
Save boomtrain-support/5afb72f4f94f510f8bf4 to your computer and use it in GitHub Desktop.
API Authentication - An example to request an OAuth token using jQuery
$.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