Hello,
I was searching around but could not find a good start.
My intention is to create an app that sends an HTTP request to our alerting service when a ticket is created (or updated, or closed).
I tries this one:
var client = ZAFClient.init();
client.on('ticket.save', function(data) {
sendAlert(data);
return true;
});
However, this never gets called.
When I use this instead, it works.
client.on('*.changed', function(data) {
sendAlert(data);
});
But it is only called when I change certain fields and not when I create a new ticket for example.
Is there some sample code for achieving the above? Or, can you point me in the right direction.
Thanks a lot
Ron

Thank you so much for posting your question to the community! Have you looked into using Webhooks instead? Their functionality is exactly what it is you're trying to achieve and they're fairly easy to setup. A Webhook will send an HTTP request/alert to your destination of choice when specific actions take place, in your case: when a ticket is created or ticket status has changed. Once integrated with your destination, you'll utilize triggers to define the actions you're looking to get alerted by. You can check out Webhooks [here](https://developer.zendesk.com/api-reference/event-connectors/webhooks/webhooks/) as well as some getting started info.
Hope this helps!
Best,
Erica - Dev Support