Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 923 Bytes

README.md

File metadata and controls

38 lines (21 loc) · 923 Bytes

nats-api-client

PHP client for https://tmmwiki.com/index.php/NATS4_REST_API_Overview

DISCLAIMER

This class library or any part of this codes is NOT affiliated or officially supported by Too Much Media's NATS Software. Use this library at your own risk. It is highly recommended to create an account with limited permission when calling the API via this library. NATS are trademark of Too Much Media.

Installation

add via composer

composer require buonzz/nats-api-client

instantiate the client

use Buonzz\NATS\Rest\Client;

$client = new Client('http://www.yournats.com', 'affiliate_username', 'affilite_apikey');

initiate a call

use Buonzz\NATS\Rest\EndPoints\Service;

$service = new Service($client);

$result = $service->ping();

now you have the $result variable containing the result of the api call.