PHP code example of lumioanalytics / lia-php-client
1. Go to this page and download the library: Download lumioanalytics/lia-php-client 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/ */
lumioanalytics / lia-php-client example snippets
ent = new Lumio\IntegrationAPI\Client();
$integration = new Lumio\IntegrationAPI\Model\Integration([
'key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'url' => 'https://example.com/',
'platform' => 'WordPress',
'platform_version' => '4.5.6',
'plugin' => 'wp-lumio-analytics',
'plugin_version' => '0.0.1',
'status' => 'active'
]);
try {
$result = $client->registerIntegration($integration);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminsApi->getAll: ', $e->getMessage(), PHP_EOL;
}