Closed swastik closed 3 years ago
Removed
add_to_segment
andremove_from_segment
methods
Is there any guidance on how we're supposed to migrate our integration from these methods to their new equivalent?
The API documentation simply states the add_to_segment
and remove_from_segment
methods are deprecated, but offers no information on how to add customers to segments with the new API, from what I can tell.
@kylefox I'm looking into the same thing, and I think you achieve it by making a data-driven segment and simply sending an event https://customer.io/docs/segments
This PR adds support for the Customer.io Transactional API.
Changes
BaseClient
class from the existingClient
that contains all the request-related logicClient
to use theBaseClient
class (and updated tests too)API
class to connect to the Transactional API and a#send_email
method to send emails