===== Planner.GetCalendars =====
Returns all agenda's available, internally an agenda is called a **calendar**
///
///
Example: https://demo.clubplanner.be/api/planner/getcalendars?token=DEMOTOKEN&memberid=1
===== Planner.GetCalendarItems =====
Returns all items in the given calendar where this member has access
///
///
///
/// 1
/// optional or 0 for no filter on employee
Get all calenderitems for a given calender and date, set id = 0 for all calendars (= no filter).
Example:
https://demo.clubplanner.be/api/planner/getcalendarItems?token=DEMOTOKEN&id=1&date=01/01/2017&days=7
===== Planner.GetCalendarItem =====
Returns 1 calendar item
///
///
Example:
https://demo.clubplanner.be/api/planner/getcalendarItem?token=DEMOTOKEN&id=1
===== Planner.AddReservation =====
Add a reservation for a given calendaritem
///
/// id of the member
/// id of the calendaritem, you need to use getcalendaritems first
/// optional, default 1
/// optional: LogType
/// optional name
/// optional
LogType:
Manual = 0
Mobile = 1
Email = 2
CheckInPoint = 3
Web = 4
WaitingList = 5
App = 6
Registration = 7
ReservationWizard = 8
Example:
https://demo.clubplanner.be/api/planner/AddReservation?token=DEMOTOKEN&memberid=1&itemid=1
===== Planner.GetReservations =====
Get all the current reservations for a given member
///
/// id of the member (optional)
/// id of the calendaritem (optional)
/// id of the calendar (optional)
/// startdate, to be used with calid (optional)
/// enddate, to be used with calid (optional)
Examples:
All reservations for a given member
https://demo.clubplanner.be/api/planner/getreservations?token=DEMOTOKEN&memberid=1
All reservations for a given calendaritem
https://demo.clubplanner.be/api/planner/getreservations?token=DEMOTOKEN&calitemid=1
All reservations for a given calendar, with start and enddate
https://demo.clubplanner.be/api/planner/getreservations?token=DEMOTOKEN&calid=1&fromdate=01/09/2018&todate=01/10/2018
===== Planner.CancelReservation =====
Cancels a given reservation
///
///
///
Example: https://demo.clubplanner.be/api/planner/CancelReservation?token=DEMOTOKEN&reservationid=1
===== Planner.AddCalendarItem =====
Add an activity to a given calendar, internally an activity is called a **calendaritem**
///
///
///
/// description of the event
/// id of the calendar
/// optional
/// optional
/// optional, default 1
/// id of the room
/// optional, will also add reservation for this member
/// optional id (number)
/// optional, id of the employee
/// optional
Example:
https://demo.clubplanner.be/api/planner/addcalendaritem?token=DEMOTOKEN&fromdate=2023-01-01T12:30:00&todate=2023-01-01T13:00:00&description=testdescription&calendarid=46&roomid=1
===== Planner.AddToWaitingList=====
Add 1 position on the waitinglist of a given calendaritem (**itemid**).
Will return BadRequest when waitinglist is disabled or member is already on waiting list.
Will return the ID of the waitinglist item when OK.
///
///
///
///
///
===== Planner.DeleteCalendarItem=====
Remove an item from the calendar, you need the exact **id** of the calendaritem.
///
///
///
===== Planner.DeleteWaitingListItem=====
Remove a waitinglist item, you need the exact **id** of the waitinglistitem.
///
///
///
===== Planner.UpdateCalendarItem =====
Updates a given calendar item.
///
/// id of the calendar item
/// optional
/// optional
/// optional
/// optional
/// optional
/// optional
/// optional
/// optional
/// optional
/// optional
/// optional
===== Planner.GetFreeTimeslots =====
Returns a list with free timeslots for a given activity
///
/// id of the calendar
/// date of the selected day
/// id of the activity (number)
https://demo.clubplanner.be/api/planner/GetFreeTimeslots?token=DEMOTOKEN&date=2023-10-01&calendarid=46&activityId=1
===== Planner.GetActivities =====
Returns a list of activities linked to a calendar
///
/// id of the calendar
https://demo.clubplanner.be/api/planner/GetActivities?token=DEMOTOKEN&calendarid=92