Add count as allowed parameter for API.friends
authorHarmon <Harmon758@gmail.com>
Sat, 1 Jun 2019 07:50:50 +0000 (02:50 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 1 Jun 2019 07:50:50 +0000 (02:50 -0500)
docs/api.rst
tweepy/api.py

index a2f753a839ed8ab23f61606cf2733060a36080e0..196e1ec6fcd764421e9b1eb1d1b4b485fdfbbfac 100644 (file)
@@ -211,6 +211,7 @@ User methods
    :param user_id: |user_id|
    :param screen_name: |screen_name|
    :param cursor: |cursor|
+   :param count: |count|
    :param skip_status: |skip_status|
    :param include_user_entities: |include_user_entities|
    :rtype: list of :class:`User` objects
index 594591eb49b162fd0817566d45fd51b3daf28780..1f642486834ee295ee294839d9830b5c3e27d1e4 100644 (file)
@@ -545,13 +545,13 @@ class API(object):
     @property
     def friends(self):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-list
-            :allowed_param:'id', 'user_id', 'screen_name', 'cursor', 'skip_status', 'include_user_entities'
+            :allowed_param:'id', 'user_id', 'screen_name', 'cursor', 'count', 'skip_status', 'include_user_entities'
         """
         return bind_api(
             api=self,
             path='/friends/list.json',
             payload_type='user', payload_list=True,
-            allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'skip_status', 'include_user_entities']
+            allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count', 'skip_status', 'include_user_entities']
         )
 
     @property