customerio / customerio-ruby

A ruby client for the Customer.io event API.
https://customer.io/docs/api/
MIT License
64 stars 75 forks source link

add track delivery metric #112

Open eserra opened 5 months ago

eserra commented 5 months ago

The /push/events endpoint is deprecated in favor of the /metrics endpoint

This PR implements track_delivery_metric to leverage the new endpoint

Note that the validation of the parameters depends on the channel of the delivery, which is unknown at runtime