Skip to content
Nothing to see here... yet ;)
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Windsor/Master
README.md
composer.json
composer.lock

README.md

Windsor Telecom Platform API Client

Currently in alpha, do not use in production

Usage

<?php

$guzzle = new GuzzleHttp\Client([
    'base_uri' => '' // set me
]);

$client = new Windsor\Master\Client($guzzle);
$client->authenticate(''); // set me

try {
    $response = $client->get('contracts');
    $data = json_decode($response, true);
    
    foreach ($data['data'] as $contracts) {
        // do something
    }
} catch (Windsor\Master\Exception $e) {
    echo $e->getMessage()."\n";

    if ($e->getType() == 'unknown') {
        echo 'Request ref: '.$e->getRef()."\n";
    }
}
You can’t perform that action at this time.