+------------------------------------------+--------------------------------------+
| .. centered:: |Follow, search, and get users|_ |
+------------------------------------------+--------------------------------------+
- | `GET followers/ids`_ | :meth:`API.followers_ids` |
+ | `GET followers/ids`_ | :meth:`API.get_follower_ids` |
+------------------------------------------+--------------------------------------+
| `GET followers/list`_ | :meth:`API.get_followers` |
+------------------------------------------+--------------------------------------+
Follow, search, and get users
-----------------------------
-.. automethod:: API.followers_ids
+.. automethod:: API.get_follower_ids
.. automethod:: API.get_followers
def testfriendsids(self):
self.api.friends_ids(screen_name=username)
- @tape.use_cassette('testfollowersids.yaml', serializer='yaml')
- def testfollowersids(self):
- self.api.followers_ids(screen_name=username)
+ @tape.use_cassette('testgetfollowerids.yaml', serializer='yaml')
+ def testgetfollowerids(self):
+ self.api.get_follower_ids(screen_name=username)
@tape.use_cassette('testfriends.yaml', serializer='yaml')
def testfriends(self):
items = list(Cursor(self.api.friends_ids).items(2))
self.assertEqual(len(items), 2)
- items = list(Cursor(self.api.followers_ids, screen_name=username).items(1))
+ items = list(Cursor(self.api.get_follower_ids, screen_name=username).items(1))
self.assertEqual(len(items), 1)
@tape.use_cassette('testcursorcursorpages.yaml', serializer='yaml')
pages = list(Cursor(self.api.friends_ids).pages(1))
self.assertTrue(len(pages) == 1)
- pages = list(Cursor(self.api.followers_ids, screen_name=username).pages(1))
+ pages = list(Cursor(self.api.get_follower_ids, screen_name=username).pages(1))
self.assertTrue(len(pages) == 1)
@tape.use_cassette('testcursorsetstartcursor.json')
@pagination(mode='cursor')
@payload('ids')
- def followers_ids(self, **kwargs):
- """followers_ids(*, user_id, screen_name, cursor, stringify_ids, count)
+ def get_follower_ids(self, **kwargs):
+ """get_follower_ids(*, user_id, screen_name, cursor, stringify_ids, \
+ count)
Returns an array containing the IDs of users following the specified
user.
def lists(self, *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)
+ def follower_ids(self, *args, **kwargs):
+ return self._api.get_follower_ids(user_id=self.id, *args, **kwargs)
class IDModel(Model):