
    g                     F    S SK JrJrJr  S SKJr  S SKJr   " S S\5      r	g)    )DictOptionalTuple)Response)Clientc                   D   \ rS rSrSrS\S\4S jrS\S\4S jr      SS
\S\S\	\
\\4      S\	\
\\4      S\	\
\\4      S\	\\\4      S\	\   S\S\4S jjr      SS
\S\S\	\
\\4      S\	\
\\4      S\	\
\\4      S\	\\\4      S\	\   S\S\4S jjrSrg	)Domain   z[
This represents at Twilio API subdomain.

Like, `api.twilio.com` or `lookups.twilio.com'.
twiliobase_urlc                     Xl         X l        g )N)r   r   )selfr   r   s      Z/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/base/domain.py__init__Domain.__init__   s         urireturnc                 v    SR                  U R                  R                  S5      UR                  S5      5      $ )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_urlDomain.absolute_url   s,     ~~dmm11#6		#GGr   Nmethodparamsdataheadersauthtimeoutallow_redirectsc	                 d    U R                  U5      n	U R                  R                  UU	UUUUUUS9$ )ag  
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$   Domain.request   sH    . ${{""+ # 	
 		
r   c	                    #    U R                  U5      n	U R                  R                  UU	UUUUUUS9I Sh  vN $  N7f)at  
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)   Domain.request_async<   sU     . $[[..+ / 	
 	
 		
 	
s   5><>)r   r   )NNNNNF)__name__
__module____qualname____firstlineno____doc__r   strr   r   r   r   objectr   floatboolr   r$   r)   __static_attributes__ r   r   r	   r	      s   !v ! !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   r1   r	   r5   r   r   <module>r9      s    ( ( ) W
V W
r   