Find one
- JavaScript
- curl
const Confetti = require('confetti')
const confetti = new Confetti({ apiKey: 'your-key' })
const ticket = await confetti.webhooks.find(2)
Result
{
"type": "ticket.attending",
"url": "http://foo.com/bar",
"provider": "zapier",
"status": "active",
"createdAt": "2020-02-29T15:12:12.435Z",
"updatedAt": "2020-02-29T15:12:12.435Z",
"id": "1"
}
curl "https://api.confetti.events/webhooks/2"
-H "Authorization: apikey your-key"
Result
{
"data": {
"id": "1",
"type": "webhook",
"attributes": {
"type": "ticket.attending",
"url": "http://foo.com/bar",
"provider": "zapier",
"status": "active",
"createdAt": "2020-02-29T15:12:12.435Z",
"updatedAt": "2020-02-29T15:12:12.435Z"
}
}
}