Basics
All data queries are requested using the following endpoint:
https://[subdomain].manageworkonline.com/awt/api/[entity]
Requests can return a single or multiple items. To simply retrieve items you can execute the following function.
The following example is in javascript, using jQuery:
function getData(){
$.ajax({
type: "GET",
url: 'https://[subdomain].manageworkonline.com/awt/api/[entity]',
crossDomain: true,
xhrFields: { withCredentials: true },
success: function(response){
if(response.Success){
if(response.Data.length > 0) alert(response.Data[0].Id);
else alert("No data found");
} else {
alert(response.ErrorMessage);
}
},
dataType: "json"
});
}
Advanced
It is possible to query data via the following methods to reduce the size and improve the performance
Post your comment on this topic.