+------------------------------------------+-------------------------------------+
| `GET lists/subscribers/show`_ | :meth:`API.get_list_subscriber` |
+------------------------------------------+-------------------------------------+
- | `GET lists/subscriptions`_ | :meth:`API.lists_subscriptions` |
+ | `GET lists/subscriptions`_ | :meth:`API.get_list_subscriptions` |
+------------------------------------------+-------------------------------------+
| `POST lists/create`_ | :meth:`API.create_list` |
+------------------------------------------+-------------------------------------+
.. automethod:: API.get_list_subscriber
-.. automethod:: API.lists_subscriptions
+.. automethod:: API.get_list_subscriptions
.. automethod:: API.create_list
def testgetlistownerships(self):
self.api.get_list_ownerships()
- @tape.use_cassette('testlistssubscriptions.json')
- def testlistssubscriptions(self):
- self.api.lists_subscriptions()
+ @tape.use_cassette('testgetlistsubscriptions.json')
+ def testgetlistsubscriptions(self):
+ self.api.get_list_subscriptions()
@tape.use_cassette('testlisttimeline.json')
def testlisttimeline(self):
@pagination(mode='cursor')
@payload('list', list=True)
- def lists_subscriptions(self, **kwargs):
- """lists_subscriptions(*, user_id, screen_name, count, cursor)
+ def get_list_subscriptions(self, **kwargs):
+ """get_list_subscriptions(*, user_id, screen_name, count, cursor)
Obtain a collection of the lists the specified user is subscribed to,
20 lists per page by default. Does not include the user's own lists.
def list_ownerships(self, *args, **kwargs):
return self._api.get_list_ownerships(user_id=self.id, *args, **kwargs)
- def lists_subscriptions(self, *args, **kwargs):
- return self._api.lists_subscriptions(user_id=self.id, *args, **kwargs)
+ def list_subscriptions(self, *args, **kwargs):
+ return self._api.get_list_subscriptions(
+ user_id=self.id, *args, **kwargs
+ )
def lists(self, *args, **kwargs):
return self._api.get_lists(user_id=self.id, *args, **kwargs)