Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
    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