Send a test event
webhooks.ping(strwebhook_id, WebhookPingParams**kwargs) -> WebhookPingResponse
POST/v2/webhooks/{teamId}/{webhookId}/ping
Fire-and-forget test delivery through the async dispatcher. The webhook must be enabled and verified.
Send a test event
import os
from micro_so import Micro
client = Micro(
api_key=os.environ.get("MICRO_API_KEY"), # This is the default and can be omitted
)
response = client.webhooks.ping(
webhook_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.webhook_id){
"dispatched": true,
"event": "event",
"webhook_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}Returns Examples
{
"dispatched": true,
"event": "event",
"webhook_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}