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
fixed Issue #1443 #1444
fixed Issue #1443 #1444
Conversation
also added endpoint |
tweepy/api.py
Outdated
@property | ||
def lists_ownerships(self): | ||
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-ownerships | ||
:allowed_param: 'screen_name', 'user_id', | ||
'cursor', 'count' | ||
""" | ||
return bind_api( | ||
api=self, | ||
path='/lists/ownerships.json', | ||
payload_type='list', payload_list=True, | ||
allowed_param=['screen_name', 'user_id', | ||
'cursor', 'count'], | ||
require_auth=True | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be part of a separate pull request, which should also add documentation for the method.
tweepy/api.py
Outdated
'cursor' | ||
'cursor', 'count' | ||
""" | ||
return bind_api( | ||
api=self, | ||
path='/lists/members.json', | ||
payload_type='user', payload_list=True, | ||
allowed_param=['owner_screen_name', 'slug', 'list_id', 'owner_id', | ||
'cursor'] | ||
'cursor', 'count'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be part of another separate pull request, which should also add documentation for the new allowed parameter.
tweepy/models.py
Outdated
*args, | ||
**kwargs) | ||
|
||
def lists_ownerships(self, *args, **kwargs): | ||
return self._api.lists_ownerships(user_id=self.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be part of the separate pull request that adds API.lists_ownerships
.
Since this is the last PR I want to include for v3.10, I've gone ahead and removed the extraneous changes myself. |
No description provided.