
    U}bg                     N    d dl mZmZmZ d dlmZ d dlmZ  G d de          Z	dS )    )DictOptionalTuple)Response)Clientc                      e Zd ZdZdedefdZdedefdZ	 	 	 	 	 	 dd
ededee	ee
f                  dee	ee
f                  dee	eef                  deeeef                  dee         dedefdZ	 	 	 	 	 	 dd
ededee	ee
f                  dee	ee
f                  dee	eef                  deeeef                  dee         dedefdZdS )Domainzg
    This represents at Twilio API subdomain.

    Like, `api.twilio.com` or `lookups.twilio.com'.
    twiliobase_urlc                 "    || _         || _        d S )N)r
   r   )selfr
   r   s      e/home/e360mart.nyusoft.in/public_html/e360mart_env/lib/python3.11/site-packages/twilio/base/domain.py__init__zDomain.__init__   s         urireturnc                     d                     | j                            d          |                    d                    S )z
        Converts a relative `uri` to an absolute url.
        :param string uri: The relative uri to make absolute.
        :return: An absolute url (based off this domain)
        z{}/{}/)formatr   strip)r   r   s     r   absolute_urlzDomain.absolute_url   s2     ~~dm11#66		#GGGr   NFmethodparamsdataheadersauthtimeoutallow_redirectsc	           
      p    |                      |          }	| j                            ||	||||||          S )a  
        Makes an HTTP request to this domain.
        :param method: The HTTP method.
        :param uri: The HTTP uri.
        :param params: Query parameters.
        :param data: The request body.
        :param headers: The HTTP headers.
        :param auth: Basic auth tuple of (username, password)
        :param timeout: The request timeout.
        :param allow_redirects: True if the client should follow HTTP
        redirects.
        r   r   r   r   r   r   )r   r
   request
r   r   r   r   r   r   r   r   r   urls
             r   r!   zDomain.request   sN    . $${""+ # 	
 	
 		
r   c	           
         K   |                      |          }	| j                            ||	||||||           d{V S )a  
        Makes an asynchronous HTTP request to this domain.
        :param method: The HTTP method.
        :param uri: The HTTP uri.
        :param params: Query parameters.
        :param data: The request body.
        :param headers: The HTTP headers.
        :param auth: Basic auth tuple of (username, password)
        :param timeout: The request timeout.
        :param allow_redirects: True if the client should follow HTTP
        redirects.
        r    N)r   r
   request_asyncr"   s
             r   r%   zDomain.request_async<   sp      . $$[..+ / 	
 	
 	
 	
 	
 	
 	
 	
 		
r   )NNNNNF)__name__
__module____qualname____doc__r   strr   r   r   r   objectr   floatboolr   r!   r%    r   r   r	   r	      s        !v ! ! ! ! !H H H H H H /3,0,0*.#' %!
 !
!
 !
 c6k*+	!

 tCK()!
 $sCx.)!
 uS#X'!
 %!
 !
 
!
 !
 !
 !
N /3,0,0*.#' %!
 !
!
 !
 c6k*+	!

 tCK()!
 $sCx.)!
 uS#X'!
 %!
 !
 
!
 !
 !
 !
 !
 !
r   r	   N)
typingr   r   r   twilio.http.responser   twilio.restr   r+   r	   r.   r   r   <module>r2      s    ( ( ( ( ( ( ( ( ( ( ) ) ) ) ) )      W
 W
 W
 W
 W
V W
 W
 W
 W
 W
r   