Get All Calendar Events

GET/api/calendar/

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area
curl -X GET "https://yoursite.com/api/calendar/" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
[
    {
        "eventid": "1",
        "title": "Hello",
        "description": "test",
        "userid": "1",
        "start": "2023-12-12 07:00:00",
        "end": 2023-12-12 07:00:00,
        "public": "1",
        "color": "#03a9f4",
        "isstartnotified": "0",
        "reminder_before": "30",
        "reminder_before_type": "minutes"
    },
    {
        "eventid": "2",
        "title": "Hello2",
        "description": "test2",
        "userid": "2",
        "start": "2022-12-12 07:00:00",
        "end": 2022-12-12 07:00:00,
        "public": "0",
        "color": "#03a9f4",
        "isstartnotified": "0",
        "reminder_before": "3",
        "reminder_before_type": "hours"
    }
]

Error-Response:

HTTP/1.1 404 Not Found
{
    "status": false,
    "message": "No data were found"
}
MethodGET
Path/api/calendar/
GroupCalendar Events
Sincev0.0.0
Defined inmodules/api/controllers/Calendar.php