Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py
def list_events(self, user: str, calendar_id: str = '', order_by: str = None, next_link: str = None,
                    top: int = DEFAULT_PAGE_SIZE, filter_by: str = None) -> Dict:
        """
        Returns all events by sending a GET request.

        Args:
        :argument user: the user id | userPrincipalName
        :argument calendar_id: calendar id  | name
        :argument order_by: specify the sort order of the items returned from Microsoft Graph
        :argument next_link: the link for the next page of results. see Microsoft documentation for more details.
        :argument top: specify the page size of the result set.
        :argument filter_by: filters results.
        """
        calendar_url = f'{user}/calendars/{calendar_id}' if calendar_id else user
        params = {'$orderby': order_by} if order_by else {}
        if next_link:  # pagination
            events = self.http_request(url_suffix=f'users/{calendar_url}/events', next_link=next_link)
        elif filter_by:
            events = self.http_request(url_suffix=f'users/{calendar_url}/events?$filter={filter_by}&$top={top}',
                                       params=params)
        else:
            events = self.http_request(url_suffix=f'users/{calendar_url}/events?$top={top}', params=params)
        return events

        Returns all events by sending a GET request.

        Args:
        :argument user: the user id | userPrincipalName
        :argument calendar_id: calendar id  | name
        :argument order_by: specify the sort order of the items returned from Microsoft Graph
        :argument next_link: the link for the next page of results. see Microsoft documentation for more details.
        :argument top: specify the page size of the result set.
        :argument filter_by: filters results.
        
Returns all events by sending a GET request.
Args.
Returns all events by sending a GET request . Args .
def list_events(self, user: str, calendar_id: str = '', order_by: str = None, next_link: str = None,
                    top: int = DEFAULT_PAGE_SIZE, filter_by: str = None) -> Dict:
        calendar_url = f'{user}/calendars/{calendar_id}' if calendar_id else user
        params = {'$orderby': order_by} if order_by else {}
        if next_link:  
            events = self.http_request(url_suffix=f'users/{calendar_url}/events', next_link=next_link)
        elif filter_by:
            events = self.http_request(url_suffix=f'users/{calendar_url}/events?$filter={filter_by}&$top={top}',
                                       params=params)
        else:
            events = self.http_request(url_suffix=f'users/{calendar_url}/events?$top={top}', params=params)
        return events
def list_events ( self , user : str , calendar_id : str = '' , order_by : str = None , next_link : str = None , top : int = DEFAULT_PAGE_SIZE , filter_by : str = None ) -> Dict : calendar_url = f'{user}/calendars/{calendar_id}' if calendar_id else user params = { '$orderby' : order_by } if order_by else { } if next_link : events = self . http_request ( url_suffix = f'users/{calendar_url}/events' , next_link = next_link ) elif filter_by : events = self . http_request ( url_suffix = f'users/{calendar_url}/events?$filter={filter_by}&$top={top}' , params = params ) else : events = self . http_request ( url_suffix = f'users/{calendar_url}/events?$top={top}' , params = params ) return events
Returns all events by sending a GET request.
Returns all events by sending a GET request .
"""
        Returns all events by sending a GET request.

        Args:
        :argument user: the user id | userPrincipalName
        :argument calendar_id: calendar id  | name
        :argument order_by: specify the sort order of the items returned from Microsoft Graph
        :argument next_link: the link for the next page of results. see Microsoft documentation for more details.
        :argument top: specify the page size of the result set.
        :argument filter_by: filters results.
        """ # pagination
self
user
str
the user id | userPrincipalName
the user id | userPrincipalName
calendar_id
str
calendar id  | name
calendar id | name
order_by
str
specify the sort order of the items returned from Microsoft Graph
specify the sort order of the items returned from Microsoft Graph
next_link
str
the link for the next page of results. see Microsoft documentation for more details.
the link for the next page of results . see Microsoft documentation for more details .
top
int
specify the page size of the result set.
specify the page size of the result set .
filter_by
str
None