xServer Internet 2 URLs
Posted: Thu Jul 13, 2017 2:58 pm
I would like to give the xLocation component of the xServer Internet 2 a try. Therefore I tried the following JavaScript/jQuery code:
Is it necessary to have the specific version 2.4 in the URL or is there also a possibility to have something like "latest v2"?
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)
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)