API Region URLs
This page details each region's respective API URL.
Definition
This page provides information about each region along with its corresponding URL. Depending on your hosting location, please substitute the appropriate URL into your API request to prevent errors.
Regions and URLs
Region | API URL |
---|---|
Singapore (SG) | https://quantiumfundwebapi.azurewebsites.net |
China mainland (CN) | https://quantiumcorewebapi.chinacloudsites.cn |
EMEA | https://core-eu-api.azurewebsites.net |
Usage example
User would like to retrieve a list of all scopes linked to current user and the data is hosted in:
SG:
curl -X GET "https://quantiumfundwebapi.azurewebsites.net/api/scope/list/currentuser" -H "accept: */*" -H "Authorization: Bearer <token>"
$.ajax({
url: 'https://quantiumfundwebapi.azurewebsites.net/api/scope/list/currentuser',
type: 'GET',
contentType: 'application/json'
headers: {
'Authorization': 'Bearer <token>'
},
success: function (result) {
var data = JSON.parse(result);
console.log(data);
},
error: function (err) {
console.error(err);
}
});
var accessToken = "<Bearer token retrieved from previous section>";
using (var client = new HttpClient())
{
var url = "https://quantiumfundwebapi.azurewebsites.net/api/scope/list/currentuser";
client.DefaultRequestHeaders.Add("Authorization", accessToken);
var response = await client.GetStringAsync(url);
// Parse JSON response.
..
}
CN:
curl -X GET "https://quantiumcorewebapi.chinacloudsites.cn/api/scope/list/currentuser" -H "accept: */*" -H "Authorization: Bearer <token>"
$.ajax({
url: 'https://quantiumcorewebapi.chinacloudsites.cn/api/scope/list/currentuser',
type: 'GET',
contentType: 'application/json'
headers: {
'Authorization': 'Bearer <token>'
},
success: function (result) {
var data = JSON.parse(result);
console.log(data);
},
error: function (err) {
console.error(err);
}
});
var accessToken = "<Bearer token retrieved from previous section>";
using (var client = new HttpClient())
{
var url = "https://quantiumcorewebapi.chinacloudsites.cn/api/scope/list/currentuser";
client.DefaultRequestHeaders.Add("Authorization", accessToken);
var response = await client.GetStringAsync(url);
// Parse JSON response.
..
}
EU:
curl -X GET "https://core-eu-api.azurewebsites.net/api/scope/list/currentuser" -H "accept: */*" -H "Authorization: Bearer <token>"
$.ajax({
url: 'https://core-eu-api.azurewebsites.net/api/scope/list/currentuser',
type: 'GET',
contentType: 'application/json'
headers: {
'Authorization': 'Bearer <token>'
},
success: function (result) {
var data = JSON.parse(result);
console.log(data);
},
error: function (err) {
console.error(err);
}
});
var accessToken = "<Bearer token retrieved from previous section>";
using (var client = new HttpClient())
{
var url = "https://core-eu-api.azurewebsites.net/api/scope/list/currentuser";
client.DefaultRequestHeaders.Add("Authorization", accessToken);
var response = await client.GetStringAsync(url);
// Parse JSON response.
..
}
Updated 8 months ago