public interface CalendarReader extends CanvasReader<CalendarEvent,CalendarReader>
| Modifier and Type | Method and Description |
|---|---|
Optional<CalendarEvent> |
getCalendarEvent(Integer id)
Retrieve a specific calendar event from Canvas.
|
List<CalendarEvent> |
listCalendarEvents(String userId,
ListCalendarEventsOptions options)
Retrieve calendar events for a specified user.
|
List<CalendarEvent> |
listCurrentUserCalendarEvents(ListCalendarEventsOptions options)
Retrieve calendar events for the current user.
|
readAsCanvasUser, readAsSisUser, withCallbackList<CalendarEvent> listCurrentUserCalendarEvents(ListCalendarEventsOptions options) throws IOException
options - Options class to capture optional parameters to this API callIOException - When there is an error communicating with CanvasList<CalendarEvent> listCalendarEvents(String userId, ListCalendarEventsOptions options) throws IOException
userId - Canvas ID or sis_user_id:xxx of the user to queryoptions - Additional options to modify the calendar queryIOException - When there is an error communicating with CanvasOptional<CalendarEvent> getCalendarEvent(Integer id) throws IOException
id - Canvas ID of the calendar eventIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.