require_auth=True
)
- @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
- )
-
@property
def lists_subscriptions(self):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions
def list_members(self):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members
:allowed_param: 'owner_screen_name', 'slug', 'list_id', 'owner_id',
- 'cursor', 'count'
+ 'cursor'
"""
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', 'count']
+ 'cursor']
)
@property
*args,
**kwargs)
- def lists_ownerships(self, *args, **kwargs):
- return self._api.lists_ownerships(user_id=self.id,
- *args,
- **kwargs)
-
def lists_subscriptions(self, *args, **kwargs):
return self._api.lists_subscriptions(user_id=self.id,
*args,