(webhooks)
List webhooks
from panora_sdk import Panora
s = Panora(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.webhooks.list()
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
List[models.WebhookResponse]
Error Object |
Status Code |
Content Type |
models.SDKError |
4xx-5xx |
/ |
Create webhook
from panora_sdk import Panora
s = Panora(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.webhooks.create(request={
"url": "https://acme.com/webhook_receiver",
"scope": [
"connection.created",
],
"description": "Webhook to receive connection events",
})
if res is not None:
# handle response
pass
models.WebhookResponse
Error Object |
Status Code |
Content Type |
models.SDKError |
4xx-5xx |
/ |
Delete Webhook
from panora_sdk import Panora
s = Panora(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.webhooks.delete(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f")
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
Example |
id |
str |
✔️ |
id of the webhook to delete. |
801f9ede-c698-4e66-a7fc-48d19eebaa4f |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
models.WebhookResponse
Error Object |
Status Code |
Content Type |
models.SDKError |
4xx-5xx |
/ |
Update webhook status
from panora_sdk import Panora
s = Panora(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.webhooks.update_status(id="801f9ede-c698-4e66-a7fc-48d19eebaa4f")
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
Example |
id |
str |
✔️ |
id of the webhook to update. |
801f9ede-c698-4e66-a7fc-48d19eebaa4f |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
models.WebhookResponse
Error Object |
Status Code |
Content Type |
models.SDKError |
4xx-5xx |
/ |
Verify payload signature of the webhook
from panora_sdk import Panora
s = Panora(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.webhooks.verify_event(request={
"payload": {
"key": "<value>",
},
"signature": "<value>",
"secret": "<value>",
})
if res is not None:
# handle response
pass
Dict[str, Any]
Error Object |
Status Code |
Content Type |
models.SDKError |
4xx-5xx |
/ |