+------------------------------------------+--------------------------------------+
| `GET friends/ids`_ | :meth:`API.friends_ids` |
+------------------------------------------+--------------------------------------+
- | `GET friends/list`_ | :meth:`API.friends` |
+ | `GET friends/list`_ | :meth:`API.get_friends` |
+------------------------------------------+--------------------------------------+
| `GET friendships/incoming`_ | :meth:`API.incoming_friendships` |
+------------------------------------------+--------------------------------------+
.. automethod:: API.friends_ids
-.. automethod:: API.friends
+.. automethod:: API.get_friends
.. automethod:: API.incoming_friendships
def testgetfollowerids(self):
self.api.get_follower_ids(screen_name=username)
- @tape.use_cassette('testfriends.yaml', serializer='yaml')
- def testfriends(self):
- self.api.friends(screen_name=username)
+ @tape.use_cassette('testgetfriends.yaml', serializer='yaml')
+ def testgetfriends(self):
+ self.api.get_friends(screen_name=username)
@tape.use_cassette('testgetfollowers.yaml', serializer='yaml')
def testgetfollowers(self):
@pagination(mode='cursor')
@payload('user', list=True)
- def friends(self, **kwargs):
- """friends(*, user_id, screen_name, cursor, count, skip_status, \
- include_user_entities)
+ def get_friends(self, **kwargs):
+ """get_friends(*, user_id, screen_name, cursor, count, skip_status, \
+ include_user_entities)
Returns a user's friends ordered in which they were added 100 at a
time. If no user is specified it defaults to the authenticated user.
return self._api.user_timeline(user_id=self.id, **kwargs)
def friends(self, **kwargs):
- return self._api.friends(user_id=self.id, **kwargs)
+ return self._api.get_friends(user_id=self.id, **kwargs)
def followers(self, **kwargs):
return self._api.get_followers(user_id=self.id, **kwargs)