Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional allowed parameters to API.friends #577

Closed
jasonab opened this issue Mar 19, 2015 · 2 comments
Closed

Add additional allowed parameters to API.friends #577

jasonab opened this issue Mar 19, 2015 · 2 comments
Labels
Improvement This is regarding an improvement to an existing feature
Milestone

Comments

@jasonab
Copy link

jasonab commented Mar 19, 2015

Friends/list claims to allow these parameters:
:allowed_param:'id', 'user_id', 'screen_name', 'cursor'

But the twitter docs show count, skip_status, and include_user_entities as well

kimtree pushed a commit to kimtree/tweepy that referenced this issue Mar 30, 2015
@Harmon758
Copy link
Member

skip_status and include_user_entities have now been added as allowed parameters to API.friends with a6e27c9 (#629) as part of Tweepy v3.4.0:

tweepy/tweepy/api.py

Lines 547 to 557 in d240f20

@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'
"""
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']
)
count is still missing, but for now, you can simply specify it as a kwarg.

The relevant documentation for the endpoint: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-list

@Harmon758 Harmon758 added the Improvement This is regarding an improvement to an existing feature label Apr 27, 2019
@Harmon758 Harmon758 changed the title Friends/list call takes additional parameters not allowed Add additional allowed parameters to API.friends Apr 27, 2019
@Harmon758
Copy link
Member

count has now been added with a8e8526.

@Harmon758 Harmon758 added this to the 3.8 milestone Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement This is regarding an improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants