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

fixed Issue #1443 #1444

Merged
merged 4 commits into from Dec 26, 2020
Merged

fixed Issue #1443 #1444

merged 4 commits into from Dec 26, 2020

Conversation

brett-schneider
Copy link
Contributor

No description provided.

@brett-schneider brett-schneider changed the title fixed Issue 106 fixed Issue #1443 Oct 2, 2020
@brett-schneider
Copy link
Contributor Author

also added endpoint
get-lists-ownerships

@joshthecoder joshthecoder added the Bug This is regarding a bug with the library label Oct 29, 2020
tweepy/api.py Outdated
Comment on lines 1037 to 1051
@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
)

Copy link
Member

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
Comment on lines 1161 to 1183
'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']
Copy link
Member

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
Comment on lines 200 to 204
*args,
**kwargs)

def lists_ownerships(self, *args, **kwargs):
return self._api.lists_ownerships(user_id=self.id,
Copy link
Member

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.

@Harmon758 Harmon758 added the Need Follow-Up This needs to be followed up on to be actionable label Dec 25, 2020
@Harmon758
Copy link
Member

Since this is the last PR I want to include for v3.10, I've gone ahead and removed the extraneous changes myself.
Feel free to open separate PRs for them.

@Harmon758 Harmon758 merged commit 5f1c2fa into tweepy:master Dec 26, 2020
@Harmon758 Harmon758 removed the Need Follow-Up This needs to be followed up on to be actionable label Dec 26, 2020
@Harmon758 Harmon758 added this to the 3.10 milestone Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is regarding a bug with the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when calling lists_membership on a member of class user, the wrong user is queried
3 participants