Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
a6e27c9e
Commit
a6e27c9e
authored
Jul 29, 2015
by
Joshua Roesslein
Browse files
Merge pull request #629 from marknca/master
Added full params to .friends()
parents
ae1465d3
3ade9e68
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/api.rst
View file @
a6e27c9e
...
...
@@ -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
...
...
tweepy/api.py
View file @
a6e27c9e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment