You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The page/per_page and since_id/max_id/amount paging strategies are mutually exclusive and incompatible with each other. For this reason, if params from both strategies are found in the same requests, an exception should be throws.
The text was updated successfully, but these errors were encountered:
Currently this library supports a paging pattern where the user provides page/per_page params which is interpolated into a limit and offset.
Another paging strategy used by APIs (see instagram/twitter) allows the user to specify an ID and an amount.
Example:
Providing
since_id = 10
andamount = 5
would return 5 rows in descending order as follows:Providing
max_id = 10
andamount = 5
would return 5 rows in descending order as follows:Note that since_id is exclusive and max_id is inclusive.
Pagination attribute:
The
pagination
attribute in the response is also handled a little different. Below is an example of Instagram's implementation:Incompatibility
The page/per_page and since_id/max_id/amount paging strategies are mutually exclusive and incompatible with each other. For this reason, if params from both strategies are found in the same requests, an exception should be throws.
The text was updated successfully, but these errors were encountered: