UserBonusSortItems

toloka.client.search_requests.UserBonusSortItems

UserBonusSortItems(self, items=None)

Keys for sorting bonuses in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — The ID of a bonus.
  • 'created' — The date of granting a bonus.

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

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming