def __init__(self, auth_id=None, auth_token=None, proxies=None, timeout=5):
        """
        The Plivo API client.

        Deals with all the API requests to be made.
        """

        self.base_uri = PLIVO_API_BASE_URI
        self.session = Session()
        self.session.headers.update({
            'User-Agent': get_user_agent(),
            'Content-Type': 'application/json',
            'Accept': 'application/json',
        })
        self.session.auth = fetch_credentials(auth_id, auth_token)
        self.multipart_session = Session()
        self.multipart_session.headers.update({
            'User-Agent': get_user_agent(),
            'Cache-Control': 'no-cache',
        })
        self.multipart_session.auth = fetch_credentials(auth_id, auth_token)
        self.proxies = proxies
        self.timeout = timeout
        self.account = Accounts(self)
        self.subaccounts = Subaccounts(self)
        self.applications = Applications(self)
        self.calls = Calls(self)
        self.live_calls = LiveCalls(self)
        self.queued_calls = QueuedCalls(self)
        self.conferences = Conferences(self)
        self.endpoints = Endpoints(self)
        self.messages = Messages(self)
        self.numbers = Numbers(self)
        self.pricing = Pricings(self)
        self.recordings = Recordings(self)
        self.addresses = Addresses(self)
        self.identities = Identities(self)
def __init__ ( self , auth_id = None , auth_token = None , proxies = None , timeout = 5 ) : self . base_uri = PLIVO_API_BASE_URI self . session = Session ( ) self . session . headers . update ( { 'User-Agent' : get_user_agent ( ) , 'Content-Type' : 'application/json' , 'Accept' : 'application/json' , } ) self . session . auth = fetch_credentials ( auth_id , auth_token ) self . multipart_session = Session ( ) self . multipart_session . headers . update ( { 'User-Agent' : get_user_agent ( ) , 'Cache-Control' : 'no-cache' , } ) self . multipart_session . auth = fetch_credentials ( auth_id , auth_token ) self . proxies = proxies self . timeout = timeout self . account = Accounts ( self ) self . subaccounts = Subaccounts ( self ) self . applications = Applications ( self ) self . calls = Calls ( self ) self . live_calls = LiveCalls ( self ) self . queued_calls = QueuedCalls ( self ) self . conferences = Conferences ( self ) self . endpoints = Endpoints ( self ) self . messages = Messages ( self ) self . numbers = Numbers ( self ) self . pricing = Pricings ( self ) self . recordings = Recordings ( self ) self . addresses = Addresses ( self ) self . identities = Identities ( self )
The Plivo API client.

        Deals with all the API requests to be made.