Comments (2)
Hi @incidentist,
Until we update to swagger 3.0 the suggested way to paginate is to use the starting_after param and keep looping until no more results are returned. Something like below:
api_response = api_instance.get_students(limit=limit)
while len(api_response.data) > 0:
# process the students and set starting_after to the last student ID
api_response = api_instance.get_students(limit=limit, starting_after=starting_after)
from clever-python.
Ah. The docs should explain that the parameter given to starting_after
is a Clever object id. In other systems I've used, that kind of hash is basically a pagination id that is returned from the initial query.
from clever-python.
Related Issues (17)
- Unable to use "distinct" parameter HOT 4
- Queries with no results return garbage array HOT 3
- Where queries with arrays longer than 219 elements returns an API Error HOT 3
- Bindings for /me HOT 1
- Invalid Version (pip, setuptools, PyPi)
- APIError / Unicode error listing records HOT 2
- Homepage README code sample results in 401 using OAuth tokens HOT 1
- PyPI packages for 3.0.0? HOT 2
- Failing module import in python 3.6 HOT 2
- python 3(.7) support HOT 5
- 3.0.2 on PyPi HOT 2
- Support for API v2.1
- Events API missing attributes
- Grade 13 breaks high grade check HOT 7
- ValueError: Invalid value for relationship (Guardian), must be one of ['Parent', 'Grandparent', 'Self', 'Aunt/Uncle', 'Sibling', 'Other', '']
- Error running `pip install clever` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clever-python.