+------------------------------------------+-------------------------------------+
| `GET friendships/outgoing`_ | :meth:`API.friendships_outgoing` |
+------------------------------------------+-------------------------------------+
- | `GET friendships/show`_ | :meth:`API.show_friendship` |
+ | `GET friendships/show`_ | :meth:`API.get_friendship` |
+------------------------------------------+-------------------------------------+
| `GET users/lookup`_ | :meth:`API.lookup_users` |
+------------------------------------------+-------------------------------------+
.. automethod:: API.friendships_outgoing
-.. automethod:: API.show_friendship
+.. automethod:: API.get_friendship
.. automethod:: API.lookup_users
friend = self.api.create_friendship(screen_name='Twitter')
self.assertEqual(friend.screen_name, 'Twitter')
- @tape.use_cassette('testshowfriendship.json')
- def testshowfriendship(self):
- source, target = self.api.show_friendship(target_screen_name='twitter')
+ @tape.use_cassette('testgetfriendship.json')
+ def testgetfriendship(self):
+ source, target = self.api.get_friendship(target_screen_name='twitter')
self.assertTrue(isinstance(source, Friendship))
self.assertTrue(isinstance(target, Friendship))
)
@payload('friendship')
- def show_friendship(self, **kwargs):
- """show_friendship(*, source_id, source_screen_name, target_id, \
- target_screen_name)
+ def get_friendship(self, **kwargs):
+ """get_friendship(*, source_id, source_screen_name, target_id, \
+ target_screen_name)
Returns detailed information about the relationship between two users.