|
2 | 2 | from office365.calendar.calendar_collection import CalendarCollection
|
3 | 3 | from office365.calendar.calendar_group_collection import CalendarGroupCollection
|
4 | 4 | from office365.calendar.meeting_time_suggestions_result import MeetingTimeSuggestionsResult
|
| 5 | +from office365.calendar.reminder import Reminder |
5 | 6 | from office365.directory.directoryObject import DirectoryObject
|
6 | 7 | from office365.directory.directoryObjectCollection import DirectoryObjectCollection
|
7 | 8 | from office365.directory.objectIdentity import ObjectIdentity
|
@@ -65,6 +66,28 @@ def _construct_request(request):
|
65 | 66 | self.context.before_execute(_construct_request)
|
66 | 67 | return result
|
67 | 68 |
|
| 69 | + def get_reminder_view(self, start_dt, end_dt): |
| 70 | + """Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, |
| 71 | + from the user's default calendar, or from some other calendar of the user's. |
| 72 | +
|
| 73 | + :param datetime.datetime end_dt: The end date and time of the event for which the reminder is set up. |
| 74 | + The value is represented in ISO 8601 format, for example, "2015-11-08T20:00:00.0000000".. |
| 75 | + :param datetime.datetime start_dt: The start date and time of the event for which the reminder is set up. |
| 76 | + The value is represented in ISO 8601 format, for example, "2015-11-08T19:00:00.0000000". |
| 77 | + """ |
| 78 | + result = ClientValueCollection(Reminder) |
| 79 | + params = { |
| 80 | + "startDateTime": start_dt.isoformat(), |
| 81 | + "endDateTime": end_dt.isoformat(), |
| 82 | + } |
| 83 | + qry = ServiceOperationQuery(self, "reminderView", params, None, None, result) |
| 84 | + self.context.add_query(qry) |
| 85 | + |
| 86 | + def _construct_request(request): |
| 87 | + request.method = HttpMethod.Get |
| 88 | + self.context.before_execute(_construct_request) |
| 89 | + return result |
| 90 | + |
68 | 91 | def delete_object(self, permanent_delete=False):
|
69 | 92 | """
|
70 | 93 | :param permanent_delete: Permanently deletes the user from directory
|
|
0 commit comments