+------------------------------------------+-------------------------------------+
| `GET lists/statuses`_ | :meth:`API.list_timeline` |
+------------------------------------------+-------------------------------------+
- | `GET lists/subscribers`_ | :meth:`API.list_subscribers` |
+ | `GET lists/subscribers`_ | :meth:`API.get_list_subscribers` |
+------------------------------------------+-------------------------------------+
| `GET lists/subscribers/show`_ | :meth:`API.get_list_subscriber` |
+------------------------------------------+-------------------------------------+
.. automethod:: API.list_timeline
-.. automethod:: API.list_subscribers
+.. automethod:: API.get_list_subscribers
.. automethod:: API.get_list_subscriber
self.api.subscribe_list(**params)
self.api.unsubscribe_list(**params)
- @tape.use_cassette('testlistsubscribers.json')
- def testlistsubscribers(self):
- self.api.list_subscribers(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
+ @tape.use_cassette('testgetlistsubscribers.json')
+ def testgetlistsubscribers(self):
+ self.api.get_list_subscribers(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
@tape.use_cassette('testgetlistsubscriber.json')
def testgetlistsubscriber(self):
@pagination(mode='cursor')
@payload('user', list=True)
- def list_subscribers(self, **kwargs):
- """list_subscribers(*, list_id, slug, owner_screen_name, owner_id, \
- count, cursor, include_entities, skip_status)
+ def get_list_subscribers(self, **kwargs):
+ """get_list_subscribers( \
+ *, list_id, slug, owner_screen_name, owner_id, count, cursor, \
+ include_entities, skip_status \
+ )
Returns the subscribers of the specified list. Private list subscribers
will only be shown if the authenticated user owns the specified list.
return self._api.unsubscribe_list(self.user.screen_name, self.slug)
def subscribers(self, **kwargs):
- return self._api.list_subscribers(
+ return self._api.get_list_subscribers(
self.user.screen_name, self.slug, **kwargs
)