o
    éË·en  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )zâ
The Landing Page Content API endpoint

Documentation: https://mailchimp.com/developer/reference/landing-pages/landing-pages_content/
Schema: https://api.mailchimp.com/schema/3.0/Definitions/LandingPages/Content/Response.json
é    )Úunicode_literals)ÚBaseApic                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚLandingPageContentz<
    The HTML content for your Mailchimp landing pages.
    c                    s&   t t| ƒj|i |¤Ž d| _d| _dS )z)
        Initialize the endpoint
        zlanding-pagesN)Úsuperr   Ú__init__ÚendpointÚpage_id)ÚselfÚargsÚkwargs©Ú	__class__© ú]/var/www/ideatree/venv/lib/python3.10/site-packages/mailchimp3/entities/landingpagecontent.pyr      s   
zLandingPageContent.__init__c                 K   s$   || _ | jjdd|  |d¡i|¤ŽS )a  
        Get the the HTML for your landing page.

        :param page_id: The unique id for the page.
        :type page_id: :py:class:`str`
        :param queryparams: The query string parameters
        queryparams['fields'] = []
        queryparams['exclude_fields'] = []
        ÚurlÚcontentNr   )r   Ú
_mc_clientÚ_getÚ_build_path)r	   r   Úqueryparamsr   r   r   Úget   s   
zLandingPageContent.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   