Skip to content

Commit 04fa033

Browse files
committed
Update README for starting_after and ending_before params
1 parent 411c250 commit 04fa033

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ If you'd like more control over pagination, or to limit the number of resources
5656
print students.next()
5757
```
5858

59+
You may also use the `starting_after` or `ending_before` parameters with the `iter` method:
60+
61+
```python
62+
students = clever.Student.iter(starting_after="530e5960049e75a9262cff1d")
63+
for s in students:
64+
print students.next()
65+
```
66+
5967
The `retrieve` class method takes in a Clever ID and returns a specific resource. The object (or list of objects in the case of `all`) supports accessing properties using either dot notation or dictionary notation:
6068

6169
```python

0 commit comments

Comments
 (0)