dev-master
9999999-devGuzzle based implementation of KISSmetrics REST API
MIT
The Requires
The Development Requires
by Richard van den Brand
api kissmetrics
Guzzle based implementation of KISSmetrics REST API
This library is a PHP 5.4 implementation of the KISSmetrics API , (*2)
This client is build using Guzzle 4.0., (*3)
This library is released under the MIT license. See the complete license in the LICENSE file., (*4)
Start by installing composer. Next do:, (*5)
$ composer require ricbra/php-kissmetrics-api
PHP >=5.4.0, (*6)
Creating a new instance:, (*7)
<?php $client = \KISSmetrics\ClientFactory::factory('your-api-key-here', [ 'defaults' => [ 'headers' => ['User-Agent' => 'your-app-name/1.0.0 +https://yourapp.com'] ] ]);
<?php $client->setProperties([ '_p' => 'Facebook #23', '_d' => 1, '_t' => 21421421, 'Property' => 'Value' ]);
<?php $client->recordEvent([ '_p' => 'Facebook #23', '_n' => 'Test event', '_t' => 12421412, '_d' => 1, 'Property' => 'Value', ]);
<?php $client->recordEvent([ '_p' => 'Facebook #23', '_n' => 'Test event', '_t' => 12421412, '_d' => 1, 'Property' => 'Value', ]);
Guzzle based implementation of KISSmetrics REST API
MIT
api kissmetrics