added friends & followers api routes
authorStuart Powers <stuart.powers@gmail.com>
Thu, 14 Feb 2013 07:22:38 +0000 (02:22 -0500)
committerStuart Powers <stuart.powers@gmail.com>
Thu, 14 Feb 2013 07:22:38 +0000 (02:22 -0500)
tweepy/api.py

index 273e059d9271e93a0c28f0766764f687305197e2..b0fbb905777e40711bf6bbac7a68ab0c5d76ffbd 100644 (file)
@@ -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: