From 29a7ecea5945704ac228da00cbd6d338cd4477f5 Mon Sep 17 00:00:00 2001 From: Stuart Powers Date: Thu, 14 Feb 2013 02:22:38 -0500 Subject: [PATCH] added friends & followers api routes --- tweepy/api.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tweepy/api.py b/tweepy/api.py index 273e059..b0fbb90 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -284,6 +284,13 @@ class API(object): allowed_param = ['id', 'user_id', 'screen_name', 'cursor'] ) + """ friends/list """ + friends = bind_api( + path = '/friends/list.json', + payload_type = 'user', payload_list = True, + allowed_param = ['id', 'user_id', 'screen_name', 'page', 'cursor'] + ) + """ friendships/incoming """ friendships_incoming = bind_api( path = '/friendships/incoming.json', @@ -305,6 +312,13 @@ class API(object): allowed_param = ['id', 'user_id', 'screen_name', 'cursor'] ) + """ followers/list """ + followers = bind_api( + path = '/followers/list.json', + payload_type = 'user', payload_list = True, + allowed_param = ['id', 'user_id', 'screen_name', 'page', 'cursor'] + ) + """ account/verify_credentials """ def verify_credentials(self, **kargs): try: -- 2.25.1