WebhookSubscriptionSortItems

toloka.client.search_requests.WebhookSubscriptionSortItems

WebhookSubscriptionSortItems(self, items=None)

Keys for sorting event subscriptions in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — A subscription ID.
  • 'created' — The creation date of a subscription.

Examples:

The example shows how to find event subscriptions sorted by creation date in the descending order. Subscriptions with equal creation dates are sorted by IDs in the ascending order.

sort = toloka.client.search_requests.WebhookSubscriptionSortItems(['-created', 'id'])
result = toloka_client.find_webhook_subscriptions(event_type='ASSIGNMENT_CREATED', pool_id='1086170', 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