Add count as allowed parameter for API.lists_memberships
authorHarmon <Harmon758@gmail.com>
Wed, 4 Sep 2019 06:44:33 +0000 (01:44 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 4 Sep 2019 06:44:47 +0000 (01:44 -0500)
docs/api.rst
tweepy/api.py

index ebe4b71b9deedfbd58ed5be667f5ba80578c6cbd..e551b3ac4a7907ebb4ec522e61d8bef1d5d7052a 100644 (file)
@@ -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
 
 
index 46ee22b2237c26e9e16b4b0b15579733a50f9fed..674a0f9ace5eccd9f54a05cc021eb18ae7b74add 100644 (file)
@@ -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
         )