def __init__(self, account_sid, token, org, base=None, **kwargs): self.org = org super().__init__(account_sid, token, **kwargs) if base: custom_api = Api(self) custom_api.base_url = base self._api = custom_api
def api(self): """ Access the Api Twilio Domain :returns: Api Twilio Domain :rtype: Api """ if self._api is None: self._api = Api(self) return self._api
def api(self): """ Access the Api Twilio Domain :returns: Api Twilio Domain :rtype: twilio.rest.api.Api """ if self._api is None: from twilio.rest.api import Api self._api = Api(self) return self._api