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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,10 +239,11 @@ print result.json()
239
239
240
240
#### Using pagination
241
241
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.
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
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:
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