(config)
- subscribe_to_webhooks - Subscribe to webhooks.
Subscribe to webhooks.
import speakeasybar
from speakeasybar.models import operations, shared
s = speakeasybar.Speakeasybar(
security=shared.Security(
api_key="<YOUR_API_KEY>",
),
)
req = [
operations.RequestBody(),
]
res = s.config.subscribe_to_webhooks(req)
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 Object | Status Code | Content Type |
---|---|---|
errors.BadRequest | 400 | application/json |
errors.APIError | 5XX | application/json |
errors.SDKError | 4xx-5xx | / |