Integrations/MicrosoftGraphMail/MicrosoftGraphMail.py
def pages_puller(self, response: dict, page_count: int) -> list:
        """ Gets first response from API and returns all pages

        Args:
            response (dict):
            page_count (int):

        Returns:
            list: list of all pages
        """
        responses = [response]
        i = page_count
        while i != 0:
            next_link = response.get('@odata.nextLink')
            if next_link:
                responses.append(
                    self.ms_client.http_request('GET', full_url=next_link, url_suffix=None)
                )

            else:
                return responses
            i -= 1
        return responses
 Gets first response from API and returns all pages

        Args:
            response (dict):
            page_count (int):

        Returns:
            list: list of all pages
        
Gets first response from API and returns all pages
Gets first response from API and returns all pages
def pages_puller(self, response: dict, page_count: int) -> list:
        responses = [response]
        i = page_count
        while i != 0:
            next_link = response.get('@odata.nextLink')
            if next_link:
                responses.append(
                    self.ms_client.http_request('GET', full_url=next_link, url_suffix=None)
                )
            else:
                return responses
            i -= 1
        return responses
def pages_puller ( self , response : dict , page_count : int ) -> list : responses = [ response ] i = page_count while i != 0 : next_link = response . get ( '@odata.nextLink' ) if next_link : responses . append ( self . ms_client . http_request ( 'GET' , full_url = next_link , url_suffix = None ) ) else : return responses i -= 1 return responses
Gets first response from API and returns all pages
Gets first response from API and returns all pages
""" Gets first response from API and returns all pages

        Args:
            response (dict):
            page_count (int):

        Returns:
            list: list of all pages
        """
list of all pages
list of all pages
list
self
response
dict
None
page_count
int
None