Skip to content

arshad-deriv/perl-WebService-Async-CustomerIO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perl-WebService-Async-CustomerIO

Unofficial support for the customer.io API

Using


use WebService::Async::CustomerIO;

my $api_client = WebService::Async::CustomerIO->new(
    site_id=>'YOUR_SITE_ID', api_key=>'YOUR_API_KEY'
);

my $customer = $api->new_customer(
    id => 'some_uniq_id',
    email => '[email protected]',
    created_at => $timestamp,
    attributes => {
        new_test_attr => 'test_value',
    }
);

$customer->upsert->then({ print "Customer added\n" });


### Emmiting events for customer
$customer->emit_event('registration');

About

Unofficial support for the customer.io API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%