Created
August 31, 2015 17:18
-
-
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
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
| $.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