o
    ˷e                     @   s0   d Z ddlmZ ddlmZ G dd deZdS )zq
The Landinge Page actions API endpoint

Documentation: https://mailchimp.com/developer/reference/landing-pages/
    )unicode_literals)BaseApic                       s0   e Zd ZdZ fddZdd Zdd Z  ZS )LandingPageActionzK
    Manage your Landing Pages, including publishing and unpublishing.
    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/landingpageaction.pyr      s   
zLandingPageAction.__init__c                 C      || _ | jj| |ddS )z
        Publish a landing page that is in draft, unpublished, or has been
        previously published and edited.

        :param page_id: The unique id for the page.
        :type page_id: :py:class:`str`
        zactions/publishurlr   
_mc_client_post_build_pathr	   r   r   r   r   publish   s   zLandingPageAction.publishc                 C   r   )z
        Unpublish a landing page that is in draft or has been published.

        :param page_id: The unique id for the page.
        :type page_id: :py:class:`str`
        zactions/unpublishr   r   r   r   r   r   	unpublish%   s   zLandingPageAction.unpublish)__name__
__module____qualname____doc__r   r   r   __classcell__r   r   r   r   r      s
    	r   N)r   
__future__r   mailchimp3.baseapir   r   r   r   r   r   <module>   s   