Commit 58fe28e8 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Added friends/followers get ids endpoints.

parent 20da4ac8
......@@ -171,4 +171,18 @@ class API(object):
'target_id', 'target_screen_name']
)
"""Get list of IDs of users the specified user is following"""
friends_ids = bind_api(
path = '/friends/ids.json',
parser = parse_ids,
allowed_param = ['id', 'user_id', 'screen_name', 'page']
)
"""Get list of IDs of users following the specified user"""
followers_ids = bind_api(
path = '/followers/ids.json',
parser = parse_ids,
allowed_param = ['id', 'user_id', 'screen_name', 'page']
)
api = API('jitterapp', 'josh1987')
......@@ -104,3 +104,7 @@ def parse_friendship(data, api):
def parse_bool(data, api):
return json.loads(data)
def parse_ids(data, api):
return json.loads(data)
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