Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py
def list_calendars(self, user: str, order_by: str = None, next_link: str = None, top: int = DEFAULT_PAGE_SIZE,
                       filter_by: str = None) -> Dict:
        """
        Lists all calendars by sending a GET request.

        Args:
        :argument user: the user id | userPrincipalName
        :argument order_by: specify the sort order of the items returned from Microsoft Graph
        :argument next_link: link for the next page of results, if exists. See Microsoft documentation for more details.
            docs.microsoft.com/en-us/graph/api/event-list?view=graph-rest-1.0
        :argument top: specify the page size of the result set.
        filter_by: filters results.
        """
        params = {'$orderby': order_by} if order_by else {}
        if next_link:  # pagination
            calendars = self.http_request(
                url_suffix=f'users/{user}/calendars',
                next_link=next_link
            )
        elif filter_by:
            calendars = self.http_request(
                url_suffix=f'users/{user}/calendars?$filter={filter_by}&$top={top}',
                params=params
            )
        else:
            calendars = self.http_request(
                url_suffix=f'users/{user}/calendars?$top={top}',
                params=params
            )

        return calendars

        Lists all calendars by sending a GET request.

        Args:
        :argument user: the user id | userPrincipalName
        :argument order_by: specify the sort order of the items returned from Microsoft Graph
        :argument next_link: link for the next page of results, if exists. See Microsoft documentation for more details.
            docs.microsoft.com/en-us/graph/api/event-list?view=graph-rest-1.0
        :argument top: specify the page size of the result set.
        filter_by: filters results.
        
Lists all calendars by sending a GET request.
Args.
Lists all calendars by sending a GET request . Args .
def list_calendars(self, user: str, order_by: str = None, next_link: str = None, top: int = DEFAULT_PAGE_SIZE,
                       filter_by: str = None) -> Dict:
        params = {'$orderby': order_by} if order_by else {}
        if next_link:  
            calendars = self.http_request(
                url_suffix=f'users/{user}/calendars',
                next_link=next_link
            )
        elif filter_by:
            calendars = self.http_request(
                url_suffix=f'users/{user}/calendars?$filter={filter_by}&$top={top}',
                params=params
            )
        else:
            calendars = self.http_request(
                url_suffix=f'users/{user}/calendars?$top={top}',
                params=params
            )
        return calendars
def list_calendars ( self , user : str , order_by : str = None , next_link : str = None , top : int = DEFAULT_PAGE_SIZE , filter_by : str = None ) -> Dict : params = { '$orderby' : order_by } if order_by else { } if next_link : calendars = self . http_request ( url_suffix = f'users/{user}/calendars' , next_link = next_link ) elif filter_by : calendars = self . http_request ( url_suffix = f'users/{user}/calendars?$filter={filter_by}&$top={top}' , params = params ) else : calendars = self . http_request ( url_suffix = f'users/{user}/calendars?$top={top}' , params = params ) return calendars
Lists all calendars by sending a GET request.
Lists all calendars by sending a GET request .
"""
        Lists all calendars by sending a GET request.

        Args:
        :argument user: the user id | userPrincipalName
        :argument order_by: specify the sort order of the items returned from Microsoft Graph
        :argument next_link: link for the next page of results, if exists. See Microsoft documentation for more details.
            docs.microsoft.com/en-us/graph/api/event-list?view=graph-rest-1.0
        :argument top: specify the page size of the result set.
        filter_by: filters results.
        """ # pagination
self
user
str
the user id | userPrincipalName
the user id | userPrincipalName
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
link for the next page of results, if exists. See Microsoft documentation for more details.
docs.microsoft.com/en-us/graph/api/event-list?view=graph-rest-1.0
link for the next page of results if exists . See Microsoft documentation for more details . docs . microsoft . com / en - us / graph / api / event - list?view = graph - rest - 1 . 0
top
int
specify the page size of the result set.
filter_by: filters results.
specify the page size of the result set . filter_by : filters results .
filter_by
str