Permalink
Browse files

Fixing user follows / followed-by endpoints

  • Loading branch information...
1 parent 73bcdf1 commit 2ce61e5dd6c32620bd09eac5baf908b0c14c780c Mike Krieger committed Jun 20, 2011
Showing with 4 additions and 12 deletions.
  1. +4 −12 instagram/client.py
View
@@ -103,13 +103,15 @@ def __init__(self, *args, **kwargs):
root_class = User)
user_follows = bind_method(
- path = "/users/{user_id}/follows/users",
+ path = "/users/{user_id}/follows",
accepts_parameters = ["user_id"],
+ paginates = True,
root_class = User)
user_followed_by = bind_method(
- path = "/users/{user_id}/followed-by/users",
+ path = "/users/{user_id}/followed-by",
accepts_parameters = ["user_id"],
+ paginates = True,
root_class = User)
user = bind_method(
@@ -153,16 +155,6 @@ def __init__(self, *args, **kwargs):
root_class = Tag,
response_type = "entry")
- user_follows = bind_method(
- path = "/users/self/follows",
- root_class = User,
- paginates = True)
-
- user_followed_by = bind_method(
- path = "/users/self/followed-by",
- root_class = User,
- paginates = True)
-
user_incoming_requests = bind_method(
path = "/users/self/requested-by",
root_class = User)

0 comments on commit 2ce61e5

Please sign in to comment.