From: Harmon Date: Sat, 1 Jun 2019 07:50:50 +0000 (-0500) Subject: Add count as allowed parameter for API.friends X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8e85263bd20e95322a874344a4776f2b9e7726c;p=tweepy.git Add count as allowed parameter for API.friends --- diff --git a/docs/api.rst b/docs/api.rst index a2f753a..196e1ec 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 diff --git a/tweepy/api.py b/tweepy/api.py index 594591e..1f64248 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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