Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save boomtrain-support/d299d1c3bc3c7d671cb4 to your computer and use it in GitHub Desktop.

Select an option

Save boomtrain-support/d299d1c3bc3c7d671cb4 to your computer and use it in GitHub Desktop.
API Header Content-Type - An example header with Content-Type when using jQuery
$.ajax({
url: 'https://api.boomtrain.com/{endpoint}',
headers: {
'x-app-id': '{app_id}',
'Content-Type': 'application/json',
'Authentication': 'Basic ' + btoa('{username}:{password}')
},
...
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment