o
    �¨ÊhFF  ã                   @   sø   d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
 G dd„ deƒZeG d	d
„ d
eƒƒZeG dd„ deƒƒZeG dd„ deƒƒZeG dd„ deƒƒZeG dd„ deƒƒZeG dd„ deƒƒZeG dd„ deƒƒZeG dd„ deƒƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    N)Ú__version__)ÚTwilioException)Úobsolete_client)ÚTwilioHttpClientc                   @   s\  e Zd ZdZ		dfdd„Z		dgdd„Zedd	„ ƒZed
d„ ƒZedd„ ƒZ	edd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZed d!„ ƒZed"d#„ ƒZed$d%„ ƒZed&d'„ ƒZed(d)„ ƒZed*d+„ ƒZed,d-„ ƒZed.d/„ ƒZed0d1„ ƒZed2d3„ ƒZed4d5„ ƒZed6d7„ ƒZed8d9„ ƒZed:d;„ ƒZ ed<d=„ ƒZ!ed>d?„ ƒZ"ed@dA„ ƒZ#edBdC„ ƒZ$edDdE„ ƒZ%edFdG„ ƒZ&edHdI„ ƒZ'edJdK„ ƒZ(edLdM„ ƒZ)edNdO„ ƒZ*edPdQ„ ƒZ+edRdS„ ƒZ,edTdU„ ƒZ-edVdW„ ƒZ.edXdY„ ƒZ/edZd[„ ƒZ0ed\d]„ ƒZ1ed^d_„ ƒZ2ed`da„ ƒZ3edbdc„ ƒZ4ddde„ Z5dS )hÚClientz( A client for accessing the Twilio API. Nc                 C   sþ   |pt j}|p| d¡| _	 |p| d¡| _	 |p| j| _	 || _	 | jr(| js,tdƒ‚| j| jf| _	 |p8t	ƒ | _
	 d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _ dS )a  
        Initializes the Twilio Client

        :param str username: Username to authenticate with
        :param str password: Password to authenticate with
        :param str account_sid: Account Sid, defaults to Username
        :param str region: Twilio Region to make requests to
        :param HttpClient http_client: HttpClient, defaults to TwilioHttpClient
        :param dict environment: Environment to look for auth details, defaults to os.environ

        :returns: Twilio Client
        :rtype: twilio.rest.Client
        ÚTWILIO_ACCOUNT_SIDÚTWILIO_AUTH_TOKENz1Credentials are required to create a TwilioClientN)!ÚosÚenvironÚgetÚusernameÚpasswordÚaccount_sidÚregionr   Úauthr   Úhttp_clientÚ	_accountsÚ_apiÚ_authyÚ
_autopilotÚ_chatÚ_faxÚ_ip_messagingÚ_lookupsÚ_monitorÚ_notifyÚ_previewÚ_pricingÚ_proxyÚ_taskrouterÚ	_trunkingÚ_videoÚ
_messagingÚ	_wirelessÚ_syncÚ_studioÚ_verifyÚ_voice)Úselfr   r   r   r   r   Úenvironment© r*   úF/var/www/html/env/lib/python3.10/site-packages/twilio/rest/__init__.pyÚ__init__   sJ   

zClient.__init__Fc	              
   C   s´   |p| j }|pi }d tt ¡ ¡|d< d t¡|d< d|d< |dkr*d|vr*d	|d< d
|vr2d|d
< | jrL| dd¡\}	}
|
 | j¡sLd |	| j|
g¡}| j	j
||||||||d�S )a¤  
        Makes a request to the Twilio API using the configured http client
        Authentication information is automatically added if none is provided

        :param str method: HTTP Method
        :param str uri: Fully qualified url
        :param dict[str, str] params: Query string parameters
        :param dict[str, str] data: POST body data
        :param dict[str, str] headers: HTTP Headers
        :param tuple(str, str) auth: Authentication
        :param int timeout: Timeout in seconds
        :param bool allow_redirects: Should the client follow redirects

        :returns: Response from the Twilio API
        :rtype: twilio.http.response.Response
        ztwilio-python/{} (Python {})z
User-Agentz	python-{}zX-Twilio-Clientzutf-8zAccept-CharsetÚPOSTzContent-Typez!application/x-www-form-urlencodedÚAcceptzapplication/jsonÚ.é   )ÚparamsÚdataÚheadersr   ÚtimeoutÚallow_redirects)r   Úformatr   ÚplatformÚpython_versionr   ÚsplitÚ
startswithÚjoinr   Úrequest)r(   ÚmethodÚurir1   r2   r3   r   r4   r5   ÚheadÚtailr*   r*   r+   r<   N   s4   
þøzClient.requestc                 C   ó&   | j du rddlm} || ƒ| _ | j S )z‹
        Access the Accounts Twilio Domain

        :returns: Accounts Twilio Domain
        :rtype: twilio.rest.accounts.Accounts
        Nr   )ÚAccounts)r   Útwilio.rest.accountsrB   )r(   rB   r*   r*   r+   Úaccounts�   ó   

zClient.accountsc                 C   rA   )zw
        Access the Api Twilio Domain

        :returns: Api Twilio Domain
        :rtype: twilio.rest.api.Api
        Nr   )ÚApi)r   Útwilio.rest.apirF   )r(   rF   r*   r*   r+   ÚapiŽ   rE   z
Client.apic                 C   rA   )z
        Access the Authy Twilio Domain

        :returns: Authy Twilio Domain
        :rtype: twilio.rest.authy.Authy
        Nr   )ÚAuthy)r   Útwilio.rest.authyrI   )r(   rI   r*   r*   r+   Úauthy›   rE   zClient.authyc                 C   rA   )z�
        Access the Autopilot Twilio Domain

        :returns: Autopilot Twilio Domain
        :rtype: twilio.rest.autopilot.Autopilot
        Nr   )Ú	Autopilot)r   Útwilio.rest.autopilotrL   )r(   rL   r*   r*   r+   Ú	autopilot¨   rE   zClient.autopilotc                 C   rA   )z{
        Access the Chat Twilio Domain

        :returns: Chat Twilio Domain
        :rtype: twilio.rest.chat.Chat
        Nr   )ÚChat)r   Útwilio.rest.chatrO   )r(   rO   r*   r*   r+   Úchatµ   rE   zClient.chatc                 C   rA   )zw
        Access the Fax Twilio Domain

        :returns: Fax Twilio Domain
        :rtype: twilio.rest.fax.Fax
        Nr   )ÚFax)r   Útwilio.rest.faxrR   )r(   rR   r*   r*   r+   ÚfaxÂ   rE   z
Client.faxc                 C   rA   )z˜
        Access the IpMessaging Twilio Domain

        :returns: IpMessaging Twilio Domain
        :rtype: twilio.rest.ip_messaging.IpMessaging
        Nr   )ÚIpMessaging)r   Útwilio.rest.ip_messagingrU   )r(   rU   r*   r*   r+   Úip_messagingÏ   rE   zClient.ip_messagingc                 C   rA   )z‡
        Access the Lookups Twilio Domain

        :returns: Lookups Twilio Domain
        :rtype: twilio.rest.lookups.Lookups
        Nr   )ÚLookups)r   Útwilio.rest.lookupsrX   )r(   rX   r*   r*   r+   ÚlookupsÜ   rE   zClient.lookupsc                 C   rA   )z‡
        Access the Monitor Twilio Domain

        :returns: Monitor Twilio Domain
        :rtype: twilio.rest.monitor.Monitor
        Nr   )ÚMonitor)r   Útwilio.rest.monitorr[   )r(   r[   r*   r*   r+   Úmonitoré   rE   zClient.monitorc                 C   rA   )zƒ
        Access the Notify Twilio Domain

        :returns: Notify Twilio Domain
        :rtype: twilio.rest.notify.Notify
        Nr   )ÚNotify)r   Útwilio.rest.notifyr^   )r(   r^   r*   r*   r+   Únotifyö   rE   zClient.notifyc                 C   rA   )z‡
        Access the Preview Twilio Domain

        :returns: Preview Twilio Domain
        :rtype: twilio.rest.preview.Preview
        Nr   )ÚPreview)r   Útwilio.rest.previewra   )r(   ra   r*   r*   r+   Úpreview  rE   zClient.previewc                 C   rA   )z‡
        Access the Pricing Twilio Domain

        :returns: Pricing Twilio Domain
        :rtype: twilio.rest.pricing.Pricing
        Nr   )ÚPricing)r   Útwilio.rest.pricingrd   )r(   rd   r*   r*   r+   Úpricing  rE   zClient.pricingc                 C   rA   )z
        Access the Proxy Twilio Domain

        :returns: Proxy Twilio Domain
        :rtype: twilio.rest.proxy.Proxy
        Nr   )ÚProxy)r   Útwilio.rest.proxyrg   )r(   rg   r*   r*   r+   Úproxy  rE   zClient.proxyc                 C   rA   )z“
        Access the Taskrouter Twilio Domain

        :returns: Taskrouter Twilio Domain
        :rtype: twilio.rest.taskrouter.Taskrouter
        Nr   )Ú
Taskrouter)r   Útwilio.rest.taskrouterrj   )r(   rj   r*   r*   r+   Ú
taskrouter*  rE   zClient.taskrouterc                 C   rA   )z‹
        Access the Trunking Twilio Domain

        :returns: Trunking Twilio Domain
        :rtype: twilio.rest.trunking.Trunking
        Nr   )ÚTrunking)r    Útwilio.rest.trunkingrm   )r(   rm   r*   r*   r+   Útrunking7  rE   zClient.trunkingc                 C   rA   )z
        Access the Video Twilio Domain

        :returns: Video Twilio Domain
        :rtype: twilio.rest.video.Video
        Nr   )ÚVideo)r!   Útwilio.rest.videorp   )r(   rp   r*   r*   r+   ÚvideoD  rE   zClient.videoc                 C   rA   )z�
        Access the Messaging Twilio Domain

        :returns: Messaging Twilio Domain
        :rtype: twilio.rest.messaging.Messaging
        Nr   )Ú	Messaging)r"   Útwilio.rest.messagingrs   )r(   rs   r*   r*   r+   Ú	messagingQ  rE   zClient.messagingc                 C   rA   )z‹
        Access the Wireless Twilio Domain

        :returns: Wireless Twilio Domain
        :rtype: twilio.rest.wireless.Wireless
        Nr   )ÚWireless)r#   Útwilio.rest.wirelessrv   )r(   rv   r*   r*   r+   Úwireless^  rE   zClient.wirelessc                 C   rA   )z{
        Access the Sync Twilio Domain

        :returns: Sync Twilio Domain
        :rtype: twilio.rest.sync.Sync
        Nr   )ÚSync)r$   Útwilio.rest.syncry   )r(   ry   r*   r*   r+   Úsynck  rE   zClient.syncc                 C   rA   )zƒ
        Access the Studio Twilio Domain

        :returns: Studio Twilio Domain
        :rtype: twilio.rest.studio.Studio
        Nr   )ÚStudio)r%   Útwilio.rest.studior|   )r(   r|   r*   r*   r+   Ústudiox  rE   zClient.studioc                 C   rA   )zƒ
        Access the Verify Twilio Domain

        :returns: Verify Twilio Domain
        :rtype: twilio.rest.verify.Verify
        Nr   )ÚVerify)r&   Útwilio.rest.verifyr   )r(   r   r*   r*   r+   Úverify…  rE   zClient.verifyc                 C   rA   )z
        Access the Voice Twilio Domain

        :returns: Voice Twilio Domain
        :rtype: twilio.rest.voice.Voice
        Nr   )ÚVoice)r'   Útwilio.rest.voicer‚   )r(   r‚   r*   r*   r+   Úvoice’  rE   zClient.voicec                 C   ó
   | j jjS )zK
        :rtype: twilio.rest.api.v2010.account.address.AddressList
        )rH   ÚaccountÚ	addresses©r(   r*   r*   r+   r‡   Ÿ  ó   
zClient.addressesc                 C   r…   )zS
        :rtype: twilio.rest.api.v2010.account.application.ApplicationList
        )rH   r†   Úapplicationsrˆ   r*   r*   r+   rŠ   ¦  r‰   zClient.applicationsc                 C   r…   )zg
        :rtype: twilio.rest.api.v2010.account.authorized_connect_app.AuthorizedConnectAppList
        )rH   r†   Úauthorized_connect_appsrˆ   r*   r*   r+   r‹   ­  r‰   zClient.authorized_connect_appsc                 C   r…   )zn
        :rtype: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryList
        )rH   r†   Úavailable_phone_numbersrˆ   r*   r*   r+   rŒ   ´  r‰   zClient.available_phone_numbersc                 C   r…   )zK
        :rtype: twilio.rest.api.v2010.account.balance.BalanceList
        )rH   r†   Úbalancerˆ   r*   r*   r+   r�   »  r‰   zClient.balancec                 C   r…   )zE
        :rtype: twilio.rest.api.v2010.account.call.CallList
        )rH   r†   Úcallsrˆ   r*   r*   r+   rŽ   Â  r‰   zClient.callsc                 C   r…   )zQ
        :rtype: twilio.rest.api.v2010.account.conference.ConferenceList
        )rH   r†   Úconferencesrˆ   r*   r*   r+   r�   É  r‰   zClient.conferencesc                 C   r…   )zR
        :rtype: twilio.rest.api.v2010.account.connect_app.ConnectAppList
        )rH   r†   Úconnect_appsrˆ   r*   r*   r+   r�   Ð  r‰   zClient.connect_appsc                 C   r…   )ze
        :rtype: twilio.rest.api.v2010.account.incoming_phone_number.IncomingPhoneNumberList
        )rH   r†   Úincoming_phone_numbersrˆ   r*   r*   r+   r‘   ×  r‰   zClient.incoming_phone_numbersc                 C   r…   )zC
        :rtype: twilio.rest.api.v2010.account.key.KeyList
        )rH   r†   Úkeysrˆ   r*   r*   r+   r’   Þ  r‰   zClient.keysc                 C   r…   )zK
        :rtype: twilio.rest.api.v2010.account.message.MessageList
        )rH   r†   Úmessagesrˆ   r*   r*   r+   r“   å  r‰   zClient.messagesc                 C   r…   )zJ
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyList
        )rH   r†   Únew_keysrˆ   r*   r*   r+   r”   ì  r‰   zClient.new_keysc                 C   r…   )zY
        :rtype: twilio.rest.api.v2010.account.new_signing_key.NewSigningKeyList
        )rH   r†   Únew_signing_keysrˆ   r*   r*   r+   r•   ó  r‰   zClient.new_signing_keysc                 C   r…   )zU
        :rtype: twilio.rest.api.v2010.account.notification.NotificationList
        )rH   r†   Únotificationsrˆ   r*   r*   r+   r–   ú  r‰   zClient.notificationsc                 C   r…   )z_
        :rtype: twilio.rest.api.v2010.account.outgoing_caller_id.OutgoingCallerIdList
        )rH   r†   Úoutgoing_caller_idsrˆ   r*   r*   r+   r—     r‰   zClient.outgoing_caller_idsc                 C   r…   )zG
        :rtype: twilio.rest.api.v2010.account.queue.QueueList
        )rH   r†   Úqueuesrˆ   r*   r*   r+   r˜     r‰   zClient.queuesc                 C   r…   )zO
        :rtype: twilio.rest.api.v2010.account.recording.RecordingList
        )rH   r†   Ú
recordingsrˆ   r*   r*   r+   r™     r‰   zClient.recordingsc                 C   r…   )zR
        :rtype: twilio.rest.api.v2010.account.signing_key.SigningKeyList
        )rH   r†   Úsigning_keysrˆ   r*   r*   r+   rš     r‰   zClient.signing_keysc                 C   r…   )zC
        :rtype: twilio.rest.api.v2010.account.sip.SipList
        )rH   r†   Úsiprˆ   r*   r*   r+   r›     r‰   z
Client.sipc                 C   r…   )zP
        :rtype: twilio.rest.api.v2010.account.short_code.ShortCodeList
        )rH   r†   Úshort_codesrˆ   r*   r*   r+   rœ   $  r‰   zClient.short_codesc                 C   r…   )zG
        :rtype: twilio.rest.api.v2010.account.token.TokenList
        )rH   r†   Útokensrˆ   r*   r*   r+   r�   +  r‰   zClient.tokensc                 C   r…   )zW
        :rtype: twilio.rest.api.v2010.account.transcription.TranscriptionList
        )rH   r†   Útranscriptionsrˆ   r*   r*   r+   rž   2  r‰   zClient.transcriptionsc                 C   r…   )zG
        :rtype: twilio.rest.api.v2010.account.usage.UsageList
        )rH   r†   Úusagerˆ   r*   r*   r+   rŸ   9  r‰   zClient.usagec                 C   r…   )z`
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        )rH   r†   Úvalidation_requestsrˆ   r*   r*   r+   r    @  r‰   zClient.validation_requestsc                 C   s   d  | j¡S )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio {}>)r6   r   rˆ   r*   r*   r+   Ú__repr__G  s   zClient.__repr__)NNNNNN)NNNNNF)6Ú__name__Ú
__module__Ú__qualname__Ú__doc__r,   r<   ÚpropertyrD   rH   rK   rN   rQ   rT   rW   rZ   r]   r`   rc   rf   ri   rl   ro   rr   ru   rx   r{   r~   r�   r„   r‡   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r*   r*   r*   r+   r      sÊ    
ÿ:
ÿ3













































r   c                   @   ó   e Zd ZdZdd„ ZdS )ÚTwilioClientúZ Dummy client which provides no functionality. Please use
    twilio.rest.Client instead. c                 G   ó   d S ©Nr*   ©r(   Úargsr*   r*   r+   r,   V  ó   zTwilioClient.__init__N©r¢   r£   r¤   r¥   r,   r*   r*   r*   r+   r¨   Q  ó    r¨   c                   @   r§   )ÚTwilioRestClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   _  r®   zTwilioRestClient.__init__Nr¯   r*   r*   r*   r+   r±   Z  r°   r±   c                   @   r§   )ÚTwilioIpMessagingClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   h  r®   z TwilioIpMessagingClient.__init__Nr¯   r*   r*   r*   r+   r²   c  r°   r²   c                   @   r§   )ÚTwilioLookupsClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   q  r®   zTwilioLookupsClient.__init__Nr¯   r*   r*   r*   r+   r³   l  r°   r³   c                   @   r§   )ÚTwilioMonitorClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   z  r®   zTwilioMonitorClient.__init__Nr¯   r*   r*   r*   r+   r´   u  r°   r´   c                   @   r§   )ÚTwilioPricingClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   ƒ  r®   zTwilioPricingClient.__init__Nr¯   r*   r*   r*   r+   rµ   ~  r°   rµ   c                   @   r§   )ÚTwilioTaskRouterClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   Œ  r®   zTwilioTaskRouterClient.__init__Nr¯   r*   r*   r*   r+   r¶   ‡  r°   r¶   c                   @   r§   )ÚTwilioTrunkingClientr©   c                 G   rª   r«   r*   r¬   r*   r*   r+   r,   •  r®   zTwilioTrunkingClient.__init__Nr¯   r*   r*   r*   r+   r·   �  r°   r·   )r¥   r	   r7   Útwilior   Útwilio.base.exceptionsr   Útwilio.base.obsoleter   Útwilio.http.http_clientr   Úobjectr   r¨   r±   r²   r³   r´   rµ   r¶   r·   r*   r*   r*   r+   Ú<module>   s8       D