Skip to content

buonzz/nats-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages