o
    t¨ÊhÐ  ã                   @   s0   d dl Z d dlZddlmZ G dd„ deƒZdS )é    Né   )Ú__version__c                   @   sL   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZd
S )ÚSendGridAPIClientzSendGrid API.c                 K   sš   |  dtj tj t¡¡¡| _|  dtj  d¡¡| _|  d| j¡| _| j| _d 	t
¡| _|  dd¡| _t
| _d 	| j¡| jd	d
œ}tj| j|dd�| _dS )z
        Construct SendGrid v3 API object.

        :params host: Base URL for the API call
        :type host: string
        ÚpathÚapikeyÚSENDGRID_API_KEYÚapi_keyzsendgrid/{0};pythonÚhostzhttps://api.sendgrid.comz
Bearer {0}zapplication/json)ÚAuthorizationz
User-agentÚAccepté   )r	   Úrequest_headersÚversionN)ÚgetÚosr   ÚabspathÚdirnameÚ__file__ÚenvironÚ_apikeyÚ_api_keyÚformatr   Ú	useragentr	   r   Úpython_http_clientÚClientÚclient)ÚselfÚoptsÚheaders© r   úC/var/www/html/env/lib/python3.10/site-packages/sendgrid/sendgrid.pyÚ__init__
   s"   ÿ
ýþzSendGridAPIClient.__init__c                 C   ó   | j S ©N©r   ©r   r   r   r    r   %   ó   zSendGridAPIClient.apikeyc                 C   ó
   || _ d S r#   r$   ©r   Úvaluer   r   r    r   )   ó   
c                 C   r"   r#   r$   r%   r   r   r    r   -   r&   zSendGridAPIClient.api_keyc                 C   r'   r#   r$   r(   r   r   r    r   1   r*   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r!   Úpropertyr   Úsetterr   r   r   r   r    r      s    


r   )r   r   r   r   Úobjectr   r   r   r   r    Ú<module>   s    