def __init__(self, endpoint, data=None, output_type=dict,
                 request_type=GET, session=None):
        """Initialize the RequestPaginator object.

        Args:
            endpoint (str): URI endpoint to call.
            session (requests.Session): The authenticated requests session.
            data (dict): Data to be sent in the query string for the
             Request.
            output_type (type): Class type to output. Object will be
             instantiated using the current row before output.
            request_type (str): Type of request to send (``GET`` or ``POST``).
            session (requests.Session, optional): An authenticated requests
             session to use.

        Raises:
            NotImplementedError: In the event that an invalid request type was
             defined.
        """
        self.endpoint = endpoint
        self.data = data
        self.output_type = output_type
        if request_type not in (self.GET, self.POST, self.PUT, self.DELETE):
            raise NotImplementedError(
                'The `%s` request type is not implemented', request_type,
            )
        self.request_type = request_type
        self.session = session or requests.Session()
def __init__ ( self , endpoint , data = None , output_type = dict , request_type = GET , session = None ) : self . endpoint = endpoint self . data = data self . output_type = output_type if request_type not in ( self . GET , self . POST , self . PUT , self . DELETE ) : raise NotImplementedError ( 'The `%s` request type is not implemented' , request_type , ) self . request_type = request_type self . session = session or requests . Session ( )
Initialize the RequestPaginator object.

        Args:
            endpoint (str): URI endpoint to call.
            session (requests.Session): The authenticated requests session.
            data (dict): Data to be sent in the query string for the
             Request.
            output_type (type): Class type to output. Object will be
             instantiated using the current row before output.
            request_type (str): Type of request to send (``GET`` or ``POST``).
            session (requests.Session, optional): An authenticated requests
             session to use.

        Raises:
            NotImplementedError: In the event that an invalid request type was
             defined.