talentify / customerio-sdk
Installs: 18 361
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7
- ext-json: *
- guzzlehttp/guzzle: ^6.0||^7.0
- myclabs/php-enum: ^1.7
Requires (Dev)
- phpstan/phpstan: ^0.12.88
- phpunit/phpunit: ^9
README
A basic php client for use customer.io.
QuickStart
Go and get your credentials and create a token to your workspace at: https://fly.customer.io/settings/api_credentials?keyType=app
$client = new CustomerIoClient( [ 'site_id' => 'string', // site_id and site_key is needed for tracking api 'site_key' => 'string', 'token' => 'string', // is needed for app and beta apis ], AccountRegion::US() ) // instance your request with his requeriments (generally entities from CIO\Entity namespace) $request = new AddOrUpdateCustomer( new Customer( new Identifier(123), 'email@provider.com', 1622554538, [ 'attributeName' => 'string|int|boolean only', 'name' => 'string', 'converted' => false, 'type' => 1, ] ) ); $response = $client->execute($request);
Dev
- install dependencies
docker-compose run php composer install
; - run tests
docker-compose run php ./vendor/bin/phpunit
;
Improvments roadmap:
- request exceptions;