HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/venv/lib/python2.7/site-packages/twilio/rest/ip_messaging.py
from twilio.rest.base import TwilioClient
from twilio.rest.resources import UNSET_TIMEOUT
from twilio.rest.resources.ip_messaging.services import Services
from twilio.rest.resources.ip_messaging.credentials import Credentials


class TwilioIpMessagingClient(TwilioClient):
    """
    A client for accessing the Twilio IP Messaging API.

    The Twilio IP Messaging API provides information about events. For more
    information, see the
    `IP Messaging API documentation <https://www.twilio.com/docs/XXX>`_.

    :param str account: Your Account Sid from `your dashboard
        <https://www.twilio.com/user/account>`_
    :param str token: Your Auth Token from `your dashboard
        <https://www.twilio.com/user/account>`_
    :param float timeout: The socket and read timeout for requests to Twilio
    """

    def __init__(self, account=None, token=None,
                 base="https://ip-messaging.twilio.com", version="v1",
                 timeout=UNSET_TIMEOUT, request_account=None):

        super(TwilioIpMessagingClient, self).__init__(account, token, base,
                                                      version, timeout,
                                                      request_account)

        self.version_uri = "%s/%s" % (base, version)
        self.services = Services(self.version_uri, self.auth, timeout)
        self.credentials = Credentials(self.version_uri, self.auth, timeout)