Ejemplo n.º 1
0
 def lookups(self):
     """
     Access the Lookups Twilio Domain
     
     :returns: Lookups Twilio Domain
     :rtype: Lookups
     """
     if self._lookups is None:
         self._lookups = Lookups(self)
     return self._lookups
Ejemplo n.º 2
0
    def lookups(self):
        """
        Access the Lookups Twilio Domain

        :returns: Lookups Twilio Domain
        :rtype: twilio.rest.lookups.Lookups
        """
        if self._lookups is None:
            from twilio.rest.lookups import Lookups
            self._lookups = Lookups(self)
        return self._lookups
Ejemplo n.º 3
0
def get_twilio_client(lookups=False):
    if lookups:
        return Lookups(settings.UNIVERSAL_NOTIFICATIONS_TWILIO_ACCOUNT,
                       settings.UNIVERSAL_NOTIFICATIONS_TWILIO_TOKEN)
    return Client(settings.UNIVERSAL_NOTIFICATIONS_TWILIO_ACCOUNT,
                  settings.UNIVERSAL_NOTIFICATIONS_TWILIO_TOKEN)