The links.load() methods loads link data directly from the specified URL using an HTTP request. As soon as it receives a response, the JavaScript Scheduler component updates the view and displays the links.
DayPilot.Scheduler.links.load(url[, success[, error[, options]]]);url (string) - JSON endpoint URL
success (function) - success event handler
error (function) - error event handler
options (object) - additional options: dontAddStartEnd (boolean) - doesn't add the viewport start and end dates to the query string
dp.links.load("/api/links", function(args) {
dp.message("Links loaded");
});