Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pagination in getInbox. #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shivamsn97
Copy link
Contributor

@shivamsn97 shivamsn97 commented Mar 7, 2021

getInbox function now accepts two arguments: start and limit (both integers)
start - Specifies the starting index of the results. (index starts from 0)
limit - Specifies how many elements we want after the start value. Use -1 for infinite. The default value is 50.
For example: start = 10 and limit = 4 will return the 11th, 12th,13th and 14th elements.

shivamsn97 and others added 2 commits March 4, 2021 19:03
getInbox function now accepts two arguments: start and limit (both integers)
start - Specifies the starting index of the results. (index starts from 0)
limit - Specifies how many elements we want after the start value. -1 for infinite.
For example: start = 10 and limit = 4 will return the 11th, 12th,13th and 14th elements.
@SwapnilSoni1999
Copy link
Owner

Have you tested?

@shivamsn97
Copy link
Contributor Author

No, not on your version, but have tested on python version. Have used same logic in both versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants