From 7c7d76abbb8cbcd06874a27028ce5361c04ebf99 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 4 Sep 2019 01:44:33 -0500 Subject: [PATCH] Add count as allowed parameter for API.lists_memberships --- docs/api.rst | 3 ++- tweepy/api.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index ebe4b71..e551b3a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -833,7 +833,7 @@ List Methods .. method:: API.lists_memberships([screen_name], [user_id], \ - [filter_to_owned_lists], [cursor]) + [filter_to_owned_lists], [cursor], [count]) Returns the lists the specified user has been added to. If ``user_id`` or ``screen_name`` are not provided, the memberships for the authenticating @@ -845,6 +845,7 @@ List Methods lists the authenticating user owns, and the user represented by ``user_id`` or ``screen_name`` is a member of. :param cursor: |cursor| + :param count: |count| :rtype: list of :class:`List` objects diff --git a/tweepy/api.py b/tweepy/api.py index 46ee22b..674a0f9 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1014,14 +1014,14 @@ class API(object): def lists_memberships(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-memberships :allowed_param: 'screen_name', 'user_id', 'filter_to_owned_lists', - 'cursor' + 'cursor', 'count' """ return bind_api( api=self, path='/lists/memberships.json', payload_type='list', payload_list=True, allowed_param=['screen_name', 'user_id', 'filter_to_owned_lists', - 'cursor'], + 'cursor', 'count'], require_auth=True ) -- 2.25.1