Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Infomaniak/api-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

infomaniak's logo api-php-client

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages