Introduction
infomaniak/api-php-client is a PHP client for Infomaniak API. This client will provide documentation of the services available, describing URIs, HTTP methods and input parameters., (*1)
Installation
You can install infomaniak/api-php-client using Composer:, (*2)
Quick integration with the following command:, (*3)
composer require infomaniak/api-php-client
Or add it to the require
section of your project's composer.json
., (*4)
"infomaniak/api-php-client": "0.1"
Usage
```php
<?php, (*5)
require 'vendor/autoload.php';
use Infomaniak\Api;, (*6)
$token = '123456789';
$client = new Api(['token' => $token]);, (*7)
// Ping example
$result = $client->ping();
print_r($result);, (*8)
// List mailbox example
$result = $client->listMailbox(
array(
'id' => 123456789,
'with' => '*'
)
);
print_r($result);, (*9)