customerio-ruby
customerio-ruby copied to clipboard
A ruby client for the Customer.io event API.
I'm working with an Expo mobile project, in which I'm trying to listen to background notifications. I managed to get it working through the customer.io transactional dashboard, using this custom...
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...
Proposal for #107 Adds an `unique_track` method to ensure uniqueness when tracking the same event multiple times, by adding a ULID. Ideally, we would add this to the existing `track`...
At MLH, we extended the customerio-ruby gem to add a method for the [trigger broadcast API](https://customer.io/docs/api-triggered-broadcasts/), aka `/v1/campaigns/#{broadcast_id}/triggers` This feature has been very helpful for us, and we'd love to...
Our use case is to update user properties daily. We batch-load hundreds of users at a time from DB but send one request per user using this library. It's not...
### From the documentation From https://customer.io/docs/journeys/events/#deduplicating-events > You can provide an id with your events, to deduplicate events—if there’s a possibility that your integration might send duplicate events. The id...
Sometimes I get a timeout error for API calls such as `$customerio.identify`: Backtrace: ``` Message: execution expired /app/vendor/ruby-2.6.6/lib/ruby/2.6.0/net/http.rb:947 initialize /app/vendor/ruby-2.6.6/lib/ruby/2.6.0/net/http.rb:947 open /app/vendor/ruby-2.6.6/lib/ruby/2.6.0/net/http.rb:947 block in connect /app/vendor/ruby-2.6.6/lib/ruby/2.6.0/timeout.rb:103 timeout /app/vendor/ruby-2.6.6/lib/ruby/2.6.0/net/http.rb:945 connect /app/vendor/ruby-2.6.6/lib/ruby/2.6.0/net/http.rb:930...
I was trying a ruby example upon setting up transactional email when an error came up ``` [redacted]2.7.6/lib/ruby/gems/2.7.0/gems/customerio-5.1.0/lib/customerio/api.rb:20:in `send_email': uninitialized constant Customerio::APIClient::JSON (NameError) ``` I dug around and found it...
We've seen an `Errno::EBADF: Bad file descriptor` error from this lib twice in the past 3 weeks. It runs in Sidekiq jobs (meaning it's multi-threaded). My suspicion is that it's...