From: Joshua Roesslein Date: Sun, 9 Jun 2013 19:37:38 +0000 (-0700) Subject: Remove 'page' parameter from some endpoints. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3619126a2b67cb80266e5d9646a0a797dab1913a;p=tweepy.git Remove 'page' parameter from some endpoints. Using max_id/since_id or cursor is the preferred way and sometimes the only way to paginate though a collection. --- diff --git a/tweepy/api.py b/tweepy/api.py index 3e9fe2a..15ee552 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -37,7 +37,7 @@ class API(object): home_timeline = bind_api( path = '/statuses/home_timeline.json', payload_type = 'status', payload_list = True, - allowed_param = ['since_id', 'max_id', 'count', 'page'], + allowed_param = ['since_id', 'max_id', 'count'], require_auth = True ) @@ -46,7 +46,7 @@ class API(object): path = '/statuses/user_timeline.json', payload_type = 'status', payload_list = True, allowed_param = ['id', 'user_id', 'screen_name', 'since_id', - 'max_id', 'count', 'page', 'include_rts'] + 'max_id', 'count', 'include_rts'] ) """ statuses/mentions """ @@ -85,7 +85,7 @@ class API(object): retweets_of_me = bind_api( path = '/statuses/retweets_of_me.json', payload_type = 'status', payload_list = True, - allowed_param = ['since_id', 'max_id', 'count', 'page'], + allowed_param = ['since_id', 'max_id', 'count'], require_auth = True ) @@ -195,7 +195,7 @@ class API(object): direct_messages = bind_api( path = '/direct_messages.json', payload_type = 'direct_message', payload_list = True, - allowed_param = ['since_id', 'max_id', 'count', 'page'], + allowed_param = ['since_id', 'max_id', 'count'], require_auth = True ) @@ -282,7 +282,7 @@ class API(object): friends = bind_api( path = '/friends/list.json', payload_type = 'user', payload_list = True, - allowed_param = ['id', 'user_id', 'screen_name', 'page', 'cursor'] + allowed_param = ['id', 'user_id', 'screen_name', 'cursor'] ) """ friendships/incoming """ @@ -310,7 +310,7 @@ class API(object): followers = bind_api( path = '/followers/list.json', payload_type = 'user', payload_list = True, - allowed_param = ['id', 'user_id', 'screen_name', 'page', 'cursor'] + allowed_param = ['id', 'user_id', 'screen_name', 'cursor'] ) """ account/verify_credentials """ @@ -432,7 +432,7 @@ class API(object): blocks = bind_api( path = '/blocks/list.json', payload_type = 'user', payload_list = True, - allowed_param = ['page'], + allowed_param = ['cursor'], require_auth = True )