Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

iadvize/api-rest-client

Repository files navigation

iAdvize Api Client CircleCI Scrutinizer Code Quality Code Coverage

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

About

Php library to access iAdvize api

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages