Skip to content

Commit 6d1d905

Browse files
committed
Add some changes
1 parent 92969c3 commit 6d1d905

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ nosetests.xml
2929
coverage.xml
3030
junit*
3131
build/
32-
dist/
32+
dist/
33+
venv/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ print result.json()
239239

240240
#### Using pagination
241241

242-
Pagination can be used when API returns Data as array type.
243-
There is 2 options: `limit` and `offset`.
244-
You can find such request example [here](https://dev.mailjet.com/email/reference/contacts/contact/#v3_get_contact).
245-
Next example returns 40 contacts starting from 50 record:
242+
Some requests (for example [GET /contact](https://dev.mailjet.com/email/reference/contacts/contact/#v3_get_contact)) has `limit` and `offset` query string parameters. These parameters could be used for pagination.
243+
`limit` `int` Limit the response to a select number of returned objects. Default value: `10`. Maximum value: `1000`
244+
`offset` `int` Retrieve a list of objects starting from a certain offset. Combine this query parameter with Limit to retrieve a specific section of the list of objects. Default value: `0`
245+
Next example returns 40 contacts starting from 51th record:
246246

247247
```python
248248
import os

0 commit comments

Comments
 (0)