+------------------------------------------+-------------------------------------+
| `GET lists/list`_ | :meth:`API.get_lists` |
+------------------------------------------+-------------------------------------+
- | `GET lists/members`_ | :meth:`API.list_members` |
+ | `GET lists/members`_ | :meth:`API.get_list_members` |
+------------------------------------------+-------------------------------------+
| `GET lists/members/show`_ | :meth:`API.get_list_member` |
+------------------------------------------+-------------------------------------+
.. automethod:: API.get_lists
-.. automethod:: API.list_members
+.. automethod:: API.get_list_members
.. automethod:: API.get_list_member
assert_list(self.api.add_list_members(**params))
assert_list(self.api.remove_list_members(**params))
- @tape.use_cassette('testlistmembers.json')
- def testlistmembers(self):
- self.api.list_members(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
+ @tape.use_cassette('testgetlistmembers.json')
+ def testgetlistmembers(self):
+ self.api.get_list_members(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
@tape.use_cassette('testgetlistmember.json')
def testgetlistmember(self):
@pagination(mode='cursor')
@payload('user', list=True)
- def list_members(self, **kwargs):
- """list_members(*, list_id, slug, owner_screen_name, owner_id, count, \
- cursor, include_entities, skip_status)
+ def get_list_members(self, **kwargs):
+ """get_list_members(*, list_id, slug, owner_screen_name, owner_id, \
+ count, cursor, include_entities, skip_status)
Returns the members of the specified list.
return self._api.remove_list_member(self.slug, id)
def members(self, **kwargs):
- return self._api.list_members(
+ return self._api.get_list_members(
self.user.screen_name, self.slug, **kwargs
)