# To use the Python SDK, install the package:
# pip install zentryai
from zentry import MemoryClient
client = MemoryClient(api_key="your_api_key")
# Update a webhook
webhook = client.update_webhook(
webhook_id="your_webhook_id",
name="Updated Webhook",
url="https://new-webhook-url.com",
event_types=["memory:add"]
)
print(webhook)
# Delete a webhook
response = client.delete_webhook(webhook_id="your_webhook_id")
print(response)