§
    ªxh	  ã                   óF   — d Z ddlZddlmZ ddlmZ  G d„ de¦  «        ZdS )aç  
This library allows you to quickly and easily use the Twilio Email Web API v3 via Python.

For more information on this library, see the README on GitHub.
    http://github.com/sendgrid/sendgrid-python
For more information on the Twilio SendGrid v3 API, see the v3 docs:
    http://sendgrid.com/docs/API_Reference/api_v3.html
For the user guide, code examples, and more, visit the main docs page:
    http://sendgrid.com/docs/index.html

This file provides the Twilio Email API Client.
é    N)Ú	b64encodeé   )ÚBaseInterfacec                   ó,   ‡ — e Zd ZdZ	 	 	 	 dˆ fd„	Zˆ xZS )ÚTwilioEmailAPIClientaê  The Twilio Email API Client.

    Use this object to interact with the v3 API. For example:
        mail_client = sendgrid.TwilioEmailAPIClient(os.environ.get('TWILIO_API_KEY'),
                                                    os.environ.get('TWILIO_API_SECRET'))
        ...
        mail = Mail(from_email, subject, to_email, content)
        response = mail_client.send(mail)

    For examples and detailed use instructions, see
        https://github.com/sendgrid/sendgrid-python
    Núhttps://email.twilio.comc                 ó  •— |p=t           j                             d¦  «        pt           j                             d¦  «        | _        |p=t           j                             d¦  «        pt           j                             d¦  «        | _        dt          d                     | j        | j        ¦  «                             ¦   «         ¦  «                             ¦   «         z   }t          t          | ¦  «                             |||¦  «         dS )aê  
        Construct the Twilio Email v3 API object.
        Note that the underlying client is being set up during initialization,
        therefore changing attributes in runtime will not affect HTTP client
        behaviour.

        :param username: Twilio Email API key SID or Account SID to use. If not
                         provided, value will be read from the environment
                         variable "TWILIO_API_KEY" or "TWILIO_ACCOUNT_SID"
        :type username: string
        :param password: Twilio Email API key secret or Account Auth Token to
                         use. If not provided, value will be read from the
                         environment variable "TWILIO_API_SECRET" or
                         "TWILIO_AUTH_TOKEN"
        :type password: string
        :param impersonate_subuser: the subuser to impersonate. Will be passed
                                    by "On-Behalf-Of" header by underlying
                                    client. See
                                    https://sendgrid.com/docs/User_Guide/Settings/subusers.html
                                    for more details
        :type impersonate_subuser: string
        :param host: base URL for API calls
        :type host: string
        ÚTWILIO_API_KEYÚTWILIO_ACCOUNT_SIDÚTWILIO_API_SECRETÚTWILIO_AUTH_TOKENzBasic z{}:{}N)ÚosÚenvironÚgetÚusernameÚpasswordr   ÚformatÚencodeÚdecodeÚsuperr   Ú__init__)Úselfr   r   ÚhostÚimpersonate_subuserÚauthÚ	__class__s         €úH/var/www/html/what/lib/python3.11/site-packages/sendgrid/twilio_email.pyr   zTwilioEmailAPIClient.__init__!   sß   ø€ ð< !ð =Ýœ
ŸšÐ'7Ñ8Ô8ð=åœ
ŸšÐ';Ñ<Ô<ð 	Œð !ð <Ýœ
ŸšÐ':Ñ;Ô;ð<åœ
ŸšÐ':Ñ;Ô;ð 	Œð ) G§N¢N°4´=À$Ä-Ñ$PÔ$P×$WÒ$WÑ$YÔ$YÑZÔZ×aÒaÑcÔcÑcˆåÕ" DÑ)Ô)×2Ò2°4¸Ð?RÑSÔSÐSÐSÐSó    )NNr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__)r   s   @r   r   r      s_   ø€ € € € € ðð ð ØØ+Ø $ð(Tð (Tð (Tð (Tð (Tð (Tð (Tð (Tð (Tð (Tr   r   )r"   r   Úbase64r   Úbase_interfacer   r   © r   r   ú<module>r'      s|   ððð ð 
€	€	€	Ø Ð Ð Ð Ð Ð à )Ð )Ð )Ð )Ð )Ð )ð6Tð 6Tð 6Tð 6Tð 6T˜=ñ 6Tô 6Tð 6Tð 6Tð 6Tr   