Code: Select all
$.ajax({
url: 'https://xserver2-europe-eu-test.cloud.ptvgroup.com/services/rest/XLocate/2.4/locations/Berlin',
type: 'GET',
cache: false,
timeout: 5000,
beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', 'Basic ' + btoa('xtok:TOKEN')); },
success: function(result) { console.log(result); },
error: function(result) { console.log(result); },
});
And is the domain xserver2-europe-eu-test.cloud.ptvgroup.com the correct way to go? I'm somehow confused by the "test" in the URL. Could you also tell me the correct URL for North America? (We have been using https://svc-eu-n.cloud.ptvgroup.com/ (Europe) and https://svc-na-n.cloud.ptvgroup.com/ (North America) for xServer Internet 1)