项目作者: buonzz

项目描述 :
[DONT USE, STILL IN UNDER ACTIVE DEVELOPMENT] PHP client for https://tmmwiki.com/index.php/NATS4_REST_API_Overview
高级语言: PHP
项目地址: git://github.com/buonzz/nats-api-client.git
创建时间: 2019-08-18T12:42:28Z
项目社区:https://github.com/buonzz/nats-api-client

开源协议:MIT License

下载


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

  1. composer require buonzz/nats-api-client

instantiate the client

  1. use Buonzz\NATS\Rest\Client;
  2. $client = new Client('http://www.yournats.com', 'affiliate_username', 'affilite_apikey');

initiate a call

  1. use Buonzz\NATS\Rest\EndPoints\Service;
  2. $service = new Service($client);
  3. $result = $service->ping();

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