.. method:: API.lists_memberships([screen_name], [user_id], \
- [filter_to_owned_lists], [cursor])
+ [filter_to_owned_lists], [cursor], [count])
Returns the lists the specified user has been added to. If ``user_id`` or
``screen_name`` are not provided, the memberships for the authenticating
lists the authenticating user owns, and the user represented by
``user_id`` or ``screen_name`` is a member of.
:param cursor: |cursor|
+ :param count: |count|
:rtype: list of :class:`List` objects
def lists_memberships(self):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-memberships
:allowed_param: 'screen_name', 'user_id', 'filter_to_owned_lists',
- 'cursor'
+ 'cursor', 'count'
"""
return bind_api(
api=self,
path='/lists/memberships.json',
payload_type='list', payload_list=True,
allowed_param=['screen_name', 'user_id', 'filter_to_owned_lists',
- 'cursor'],
+ 'cursor', 'count'],
require_auth=True
)