dev-master
9999999-devA PHP client library for Mixpanel's data export API using Guzzle
MIT
The Requires
- php >=5.3.2
- guzzle/guzzle 3.*
by Joe Linn
guzzle mixpanel mixpanel api mixguzzle
Wallogit.com
2017 © Pedro Peláez
A PHP client library for Mixpanel's data export API using Guzzle
Operations are named based on their request URIs as outlined in Mixpanel's API documentation., (*1)
//example client instantiation and API call
$client = MixGuzzle\MixGuzzleClient::factory(array(
'api_key' => 'your_api_key',
'api_secret' => 'your_api_secret'
));
$command = $client->getCommand('events', array(
'event' => array('Homepage Visit'),
'type' => 'unique',
'unit' => 'day',
'interval' => 10
));
$response = $client->execute($command);
# Install Composer curl -sS https://getcomposer.org/installer | php # Add MixGuzzle as a dependency php composer.phar require jlinn/mixguzzle
After installing, you need to require Composer's autoloader:, (*2)
require 'vendor/autoload.php';
A PHP client library for Mixpanel's data export API using Guzzle
MIT
guzzle mixpanel mixpanel api mixguzzle