o
    éË·eÖ  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )z¥
The API Root endpoint

Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/root/
Schema: https://api.mailchimp.com/schema/3.0/Root.json
é    )Úunicode_literals)ÚBaseApic                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚRootz¬
    The API root resource links to all other resources available in the API.
    Calling the root directory also returns details about the MailChimp user
    account.
    c                    s    t t| ƒj|i |¤Ž d| _dS )z)
        Initialize the endpoint
        Ú N)Úsuperr   Ú__init__Úendpoint)ÚselfÚargsÚkwargs©Ú	__class__© úO/var/www/ideatree/venv/lib/python3.10/site-packages/mailchimp3/entities/root.pyr      s   
zRoot.__init__c                 K   s   | j jdd|  ¡ i|¤ŽS )zÏ
        Get links to all other resources available in the API.

        :param queryparams: The query string parameters
        queryparams['fields'] = []
        queryparams['exclude_fields'] = []
        ÚurlNr   )Ú
_mc_clientÚ_getÚ_build_path)r	   Úqueryparamsr   r   r   Úget   s   zRoot.get)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__classcell__r   r   r   r   r      s    r   N)r   Ú
__future__r   Úmailchimp3.baseapir   r   r   r   r   r   Ú<module>   s   