lumioanalytics / lia-php-client
Lumio instegrations api php client
0.0.2
2019-01-30 08:46 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2025-06-29 01:28:08 UTC
README
Requirements
PHP 5.5 or later
Installation & Usage
Composer
To install the bindings via Composer, run composer require lumioanalytics/lia-php-client
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/lia-php-client/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $client = 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; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.lumio.page/
Class | Method | HTTP request | Description |
---|---|---|---|
DevelopersApi | save | POST /integration | adds an integration item |