The DayPilot.Http.get() method makes an HTTP request to the specified URL using the GET method.
The syntax and behavior is inspired by axios.
It is a static method.
DayPilot.Http.get(url[, options]);url (string) - URL of the HTTP request
options.headers (object, optional) - an object with header values
The DayPilot.Http.get() method returns a promise. If the HTTP response status code is 200, 201, 204, or 304, the promise is resolved; otherwise it is rejected.
Resolved promise handlers receive an args object with the following properties:
args.request - XMLHttpRequest object used for making the request
args.data - event data received from the server, converted from JSON to object using JSON.parse()
Rejected promise handlers receive an args object with the following property:
args.request - XMLHttpRequest object used for making the request
const {data} = await DayPilot.Http.get("/events");
console.log("data", data);Dynamic Event Loading [doc.daypilot.org]
Event Bubble [doc.daypilot.org]
Link Loading [doc.daypilot.org]