(config)
- subscribe_to_webhooks - Subscribe to webhooks.
Subscribe to webhooks.
from speakeasy_bar_py import BarPython
from speakeasy_bar_py.models import components
with BarPython(
security=components.Security(
api_key="<YOUR_API_KEY_HERE>",
),
) as s:
res = s.config.subscribe_to_webhooks(request=[
{},
])
if res is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
List[operations.RequestBody] | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.SubscribeToWebhooksResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.APIError | 5XX | application/json |
errors.SDKError | 4XX | */* |