Commit 3619126a authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

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.
parent a071bac0
......@@ -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
)
......
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