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
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,8 @@ Check out all the resources and Python code examples in the official [Mailjet Do
32
32
-[Using actions](#using-actions)
33
33
-[GET request](#get-request)
34
34
-[Retrieve all objects](#retrieve-all-objects)
35
-
-[Use filtering](#use-filtering)
35
+
-[Using filtering](#using-filtering)
36
+
-[Using pagination](#using-pagination)
36
37
-[Retrieve a single object](#retrieve-a-single-object)
37
38
-[PUT request](#put-request)
38
39
-[DELETE request](#delete-request)
@@ -236,6 +237,32 @@ print result.status_code
236
237
print result.json()
237
238
```
238
239
240
+
#### Using pagination
241
+
242
+
Some requests (for example [GET /contact](https://dev.mailjet.com/email/reference/contacts/contact/#v3_get_contact)) has `limit`, `offset` and `sort` 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
+
`sort``str` Sort the results by a property and select ascending (ASC) or descending (DESC) order. The default order is ascending. Keep in mind that this is not available for all properties. Default value: `ID asc`
246
+
Next example returns 40 contacts starting from 51th record sorted by `Email` field descendally:
0 commit comments