Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var oneall_public_key = 'a349ba4a-896d-4726-b7c2-f38e417cc15f';
- var oneall_private_key = '6d2cca60-65e6-4972-89bc-6fa185ba88ba';
- var site_authentication = oneall_public_key + ":" + oneall_private_key;
- var bytes = [];
- for (var i = 0; i < site_authentication.length; ++i)
- bytes.push(site_authentication.charCodeAt(i));
- var encoded_site_authentication = btoa(bytes).replace("[\n\r]", "");
- var resource_uri = 'https://' + oneall_subdomain + ".api.oneall.com"; //+ '/connections.json';
- var result_json = "";
- var testHttp = null;
- testHttp = new XMLHttpRequest();
- testHttp.open( "GET", resource_uri, false);
- //testHttp.setRequestHeader("Authorization", "Basic " + encoded_site_authentication);
- testHttp.send();//encoded_site_authentication);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement