(
        self,
        domain_name: str,
        base_url: Optional[str],
        *,
        verify: bool = True,
        auth_manager: AuthManager,
        notify_addresses: Optional[list] = None,
        payload_id: Optional[str] = None,
        logger: Optional[Callable] = None,
    )
Initialise instance

        :param domain_name: Domain to store logs under
        :param base_url: Remote API base URL
        :param verify: Verify SSL certificate?
        :param auth_manager: AuthManager instance to manage
            authentication
        :param notify_addresses: A list of email addresses to notify of
            errors.
        :param payload_id: The ID of the case or form submission
            associated with this request
        :param logger: function called after a request has been sent:
                        `logger(log_level, log_entry: RequestLogEntry)`
Initialise instance
Initialise instance
def __init__(
        self,
        domain_name: str,
        base_url: Optional[str],
        *,
        verify: bool = True,
        auth_manager: AuthManager,
        notify_addresses: Optional[list] = None,
        payload_id: Optional[str] = None,
        logger: Optional[Callable] = None,
    ):
        """
        Initialise instance

        :param domain_name: Domain to store logs under
        :param base_url: Remote API base URL
        :param verify: Verify SSL certificate?
        :param auth_manager: AuthManager instance to manage
            authentication
        :param notify_addresses: A list of email addresses to notify of
            errors.
        :param payload_id: The ID of the case or form submission
            associated with this request
        :param logger: function called after a request has been sent:
                        `logger(log_level, log_entry: RequestLogEntry)`
        """
        self.domain_name = domain_name
        self.base_url = base_url
        self.verify = verify
        self.auth_manager = auth_manager
        self.notify_addresses = notify_addresses if notify_addresses else []
        self.payload_id = payload_id
        self.logger = logger or RequestLog.log
        self.send_request = log_request(self, self.send_request_unlogged, self.logger)
        self._session = None
def __init__ ( self , domain_name : str , base_url : Optional [ str ] , * , verify : bool = True , auth_manager : AuthManager , notify_addresses : Optional [ list ] = None , payload_id : Optional [ str ] = None , logger : Optional [ Callable ] = None , ) : self . domain_name = domain_name self . base_url = base_url self . verify = verify self . auth_manager = auth_manager self . notify_addresses = notify_addresses if notify_addresses else [ ] self . payload_id = payload_id self . logger = logger or RequestLog . log self . send_request = log_request ( self , self . send_request_unlogged , self . logger ) self . _session = None