Commit c78f9a8d authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Merge pull request #249 from sente/master

Added endpoints for followers/list.json and friends/friends.json.
parents f4502345 775d39ab
......@@ -26,3 +26,4 @@ Will McCutchen
gilles
Can Duruk
Jan Schaumann (@jschauma)
Stuart Powers
......@@ -150,6 +150,12 @@ class TweepyAPITests(unittest.TestCase):
def testfollowersids(self):
self.api.followers_ids(username)
def testfriends(self):
self.api.friends(username)
def testfollowers(self):
self.api.followers(username)
def testverifycredentials(self):
self.assertNotEqual(self.api.verify_credentials(), False)
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment