+------------------------------------------+-------------------------------------+
| .. centered:: |Create and manage lists|_ |
+------------------------------------------+-------------------------------------+
- | `GET lists/list`_ | :meth:`API.lists_all` |
+ | `GET lists/list`_ | :meth:`API.get_lists` |
+------------------------------------------+-------------------------------------+
| `GET lists/members`_ | :meth:`API.list_members` |
+------------------------------------------+-------------------------------------+
Create and manage lists
-----------------------
-.. automethod:: API.lists_all
+.. automethod:: API.get_lists
.. automethod:: API.list_members
# self.assertEqual(l.description, 'updated!')
# self.api.destroy_list(list_id=l.id)
- @tape.use_cassette('testlistsall.json')
- def testlistsall(self):
- self.api.lists_all()
+ @tape.use_cassette('testgetlists.json')
+ def testgetlists(self):
+ self.api.get_lists()
@tape.use_cassette('testlistsmemberships.json')
def testlistsmemberships(self):
# Create and manage lists
@payload('list', list=True)
- def lists_all(self, **kwargs):
- """lists_all(*, user_id, screen_name, reverse)
+ def get_lists(self, **kwargs):
+ """get_lists(*, user_id, screen_name, reverse)
Returns all lists the authenticating or specified user subscribes to,
including their own. The user is specified using the ``user_id`` or
return self._api.lists_subscriptions(user_id=self.id, *args, **kwargs)
def lists(self, *args, **kwargs):
- return self._api.lists_all(user_id=self.id, *args, **kwargs)
+ return self._api.get_lists(user_id=self.id, *args, **kwargs)
def followers_ids(self, *args, **kwargs):
return self._api.followers_ids(user_id=self.id, *args, **kwargs)