@@ -2098,9 +2098,19 @@ def get_default_calendar(self):
2098
2098
return self .calendar_constructor (parent = self ,
2099
2099
** {self ._cloud_data_key : data })
2100
2100
2101
- def get_events (self , limit = 25 , * , query = None , order_by = None , batch = None ,
2102
- download_attachments = False , include_recurring = True ):
2103
- """ Get events from the default Calendar
2101
+ def get_events (
2102
+ self ,
2103
+ limit = 25 ,
2104
+ * ,
2105
+ query = None ,
2106
+ order_by = None ,
2107
+ batch = None ,
2108
+ download_attachments = False ,
2109
+ include_recurring = True ,
2110
+ start_recurring = None ,
2111
+ end_recurring = None ,
2112
+ ):
2113
+ """Get events from the default Calendar
2104
2114
2105
2115
:param int limit: max no. of events to get. Over 999 uses batch.
2106
2116
:param query: applies a OData filter to the request
@@ -2111,16 +2121,24 @@ def get_events(self, limit=25, *, query=None, order_by=None, batch=None,
2111
2121
batches allowing to retrieve more items than the limit.
2112
2122
:param bool download_attachments: downloads event attachments
2113
2123
:param bool include_recurring: whether to include recurring events or not
2124
+ :param start_recurring: a string datetime or a Query object with just a start condition
2125
+ :param end_recurring: a string datetime or a Query object with just an end condition
2114
2126
:return: list of items in this folder
2115
2127
:rtype: list[Event] or Pagination
2116
2128
"""
2117
2129
2118
2130
default_calendar = self .calendar_constructor (parent = self )
2119
2131
2120
- return default_calendar .get_events (limit = limit , query = query ,
2121
- order_by = order_by , batch = batch ,
2122
- download_attachments = download_attachments ,
2123
- include_recurring = include_recurring )
2132
+ return default_calendar .get_events (
2133
+ limit = limit ,
2134
+ query = query ,
2135
+ order_by = order_by ,
2136
+ batch = batch ,
2137
+ download_attachments = download_attachments ,
2138
+ include_recurring = include_recurring ,
2139
+ start_recurring = start_recurring ,
2140
+ end_recurring = end_recurring ,
2141
+ )
2124
2142
2125
2143
def new_event (self , subject = None ):
2126
2144
""" Returns a new (unsaved) Event object in the default calendar
0 commit comments