Added additional params to .friends(). Now you can request the latest status (skip_st...
authorMark Nunnikhoven <me@markn.ca>
Sun, 5 Jul 2015 17:20:32 +0000 (13:20 -0400)
committerMark Nunnikhoven <me@markn.ca>
Sun, 5 Jul 2015 17:20:32 +0000 (13:20 -0400)
docs/api.rst
tweepy/api.py

index ed6497e0533a5d1b3192ac600564d47d165e65d1..d89f25b40a783b4f201935e6d4c293f6e39b9630 100644 (file)
@@ -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
 
 
index 3f698f1225a6079400dc23a9ee8f130d2b780d66..45c35ee9c04f71bcdb64b9e57c0937066898098d 100644 (file)
@@ -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