Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 26, 2016 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/b253c9ab61fbed8fbff86b28c44ce541 to your computer and use it in GitHub Desktop.
Save bjoerntx/b253c9ab61fbed8fbff86b28c44ce541 to your computer and use it in GitHub Desktop.
var serviceURL =
"https://api.reporting.cloud/v1/account/settings";
$.ajax
({
type: "GET",
url: serviceURL,
dataType: "json",
async: false,
cache: false,
headers: {
"Authorization": "Basic " + btoa("username:password")
},
success: function(response) {
console.log(response);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment