From: Mark Nunnikhoven Date: Sun, 5 Jul 2015 17:20:32 +0000 (-0400) Subject: Added additional params to .friends(). Now you can request the latest status (skip_st... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3ade9e6802148646611c601721d963d0965bc94a;p=tweepy.git Added additional params to .friends(). Now you can request the latest status (skip_status) and that the user entity be returned with the request (include_user_entities) --- diff --git a/docs/api.rst b/docs/api.rst index ed6497e..d89f25b 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -174,7 +174,7 @@ User methods :rtype: :class:`User` object -.. method::API.friends([id/user_id/screen_name], [cursor]) +.. method::API.friends([id/user_id/screen_name], [cursor], [skip_status], [include_user_entities]) Returns an user's friends ordered in which they were added 100 at a time. If no user is specified it defaults to the authenticated user. @@ -182,6 +182,8 @@ User methods :param user_id: |user_id| :param screen_name: |screen_name| :param cursor: |cursor| + :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 3f698f1..45c35ee 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -528,13 +528,13 @@ class API(object): @property def friends(self): """ :reference: https://dev.twitter.com/rest/reference/get/friends/list - :allowed_param:'id', 'user_id', 'screen_name', 'cursor' + :allowed_param:'id', 'user_id', 'screen_name', 'cursor', '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'] + allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'skip_status', 'include_user_entities'] ) @property