infomaniak/api-php-client

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1.01) of this package.

A PHP client library for accessing Infomaniak APIs.

0.1.01 2017-03-01 13:33 UTC

This package is not auto-updated.

Last update: 2022-06-01 08:53:44 UTC


README

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.

Installation

You can install infomaniak/api-php-client using Composer:

Quick integration with the following command:

composer require infomaniak/api-php-client

Or add it to the require section of your project's composer.json.

"infomaniak/api-php-client": "0.1"

Usage

<?php

require 'vendor/autoload.php';
use Infomaniak\Api;

$token = '123456789';
$client = new Api(['token' => $token]);

// Ping example
$result = $client->ping();
print_r($result);

// List mailbox example
$result = $client->listMailbox(
	array(
		'id'   => 123456789,
		'with' => '*'
	)
);
print_r($result);