iadvize/apirestclient

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

iAdvize API Rest client

1.3.0 2015-04-27 16:21 UTC

This package is not auto-updated.

Last update: 2021-10-30 01:03:07 UTC


README

Library to access iAdvize api

Examples

List websites

use Iadvize\ApiRestClient\Client;

// Create client
$client = new Client();
$client->setAuthenticationKey(API_KEY);

// Get resource
$website = $client->getResource('website', 123);

// Display resource
if ($website) {
    printf(
        '[%s] — %s - http://%s' . PHP_EOL,
        $website['id'],
        $website['name'],
        $website['url']
    );
} else {
    echo $client->getLastResponse()->getMeta()->getMessage();
}

Install

composer require iadvize/apirestclient

Documentation

You can access the documentation here : documentation

Launch tests

cp ./phpunix.xml.dist ./phpunix.xml
./vendor/bin/phpunit -c phpunit.xml

Contribute

Look at contribution guidelines here : CONTRIBUTING.md