Toloka documentation

get_webhook_subscriptions

toloka.client.TolokaClient.get_webhook_subscriptions

Finds all webhook-subscriptions that match certain rules and returns them in an iterable object

Unlike find_webhook-subscriptions, returns generator. Does not sort webhook-subscriptions. While iterating over the result, several requests to the Toloka server is possible.

Parameters Description

Parameters Type Description
event_type Optional[WebhookSubscription.EventType]

Event type.

pool_id Optional[str]

ID of the pool for which subscription information is requested.

id_lt Optional[str]

Subscriptions with an ID less than the specified value.

id_lte Optional[str]

Subscriptions with an ID less than or equal to the specified value.

id_gt Optional[str]

Subscriptions with an ID greater than the specified value.

id_gte Optional[str]

Subscriptions with an ID greater than or equal to the specified value.

created_lt Optional[datetime]

Subscriptions created before the specified date.

created_lte Optional[datetime]

Subscriptions created before or on the specified date.

created_gt Optional[datetime]

Subscriptions created after the specified date.

created_gte Optional[datetime]

Subscriptions created after or on the specified date.

  • Yields:

    The next object corresponding to the request parameters.

  • Yield type:

    Generator[WebhookSubscription, None, None]