diff --git a/mautic/api.py b/mautic/api.py index 0c3bf54..fa12198 100644 --- a/mautic/api.py +++ b/mautic/api.py @@ -122,7 +122,7 @@ def get_list( limit=0, order_by='', order_by_dir='ASC', - published_only=False, + published=False, minimal=False ): """ @@ -133,7 +133,7 @@ def get_list( :param limit: int :param order_by: str :param order_by_dir: str - :param published_only: bool + :param published: bool :param minimal: bool :return: dict|str """ @@ -147,8 +147,8 @@ def get_list( parameters['orderBy'] = order_by if order_by_dir: parameters['orderByDir'] = order_by_dir - if published_only: - parameters['publishedOnly'] = 'true' + if published: + parameters['published'] = 'true' response = self._client.session.get( self.endpoint_url, params=parameters ) @@ -172,7 +172,7 @@ def get_published_list( limit=limit, order_by=order_by, order_by_dir=order_by_dir, - published_only=True + published=True ) def create(self, parameters): diff --git a/mautic/stats.py b/mautic/stats.py index 2a8fc77..5b01c43 100644 --- a/mautic/stats.py +++ b/mautic/stats.py @@ -43,7 +43,7 @@ def get_list( limit=0, order_by='', order_by_dir='ASC', - published_only=False, + published=False, minimal=False ): return self.action_not_supported('get_list')