toloka.client.search_requests.UserBonusSortItems
UserBonusSortItems(self, items=None)
Keys for sorting bonuses in search results.
Parameters | Type | Description |
---|---|---|
items | Optional[List[SortItem]] | A list of sorting keys. Supported values:
|
Examples:
The example shows how to find bonuses sorted by granting date in the descending order. Bonuses with equal granting dates are sorted by IDs in the ascending order.
sort = toloka.client.search_requests.UserBonusSortItems(['-created', 'id'])result = toloka_client.find_user_bonuses(user_id='fac97860c7929add8048ed2ef63b66fd', sort=sort, limit=10)
Last updated: August 28, 2023