PHP code example of kubrey / appsflyer
1. Go to this page and download the library: Download kubrey/appsflyer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kubrey / appsflyer example snippets
$api = new \appsflyer\api\PullApi\RawDataReport($apiKey);
try {
$api->setFilters(['from' => '2017-02-27', 'to' => '2017-03-03'])
->addBeforeRunCallback(function ($params) {
var_dump($params);
})
->getInAppEventsReport($idApp);
$arr = $api->getCsvAsArray();
//to get mapped array
$mapped = $api->mapCsvArrayToColumns($arr);
var_dump($api->getLastCurlError(), $api->getLastCurlFile());
} catch (\Exception $e) {
var_dump($e->getMessage());
}