2017 © Pedro Peláez
 

library ostkit

Ost php wrapper

image

ostkitphpwrapper/ostkit

Ost php wrapper

  • Thursday, May 24, 2018
  • by xblue55
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Travis ci, (*1)

OST KIT - PHP Wrapper for the OST KIT API

A PHP wrapper for the REST API of OST KIT which is currently under active development. This client implements version 0.9.2 of the OST KIT REST API., (*2)

Screenshot, (*3)

A Branded Token economy must be setup first in order to use the API, see https://kit.ost.com for more information., (*4)

How to install

composer require ostkitphpwrapper/ostkit:"dev-master"

How to use the client

Create the OST KIT client using your Branded Token economy's API key, API secret and API URL default https://sandboxapi.ost.com/v1, (*5)

use Ostkit\Ostkit as Ostkit;

$ost = new Ostkit('YOUR-API-KEY', 'YOUR-API-SECRET');


/* USERS functions */
// Create a user named 'Ria'.
$response = $ost->userCreate('Luong');

// ... and rename 'Ria' to 'Fred'.
$response = $ost->userEdit($user['uuid'], 'Tinh');

// ... get info by id
$response = $ost->userRetrieve($user['uuid']); 

$response = $ost->userList(); // lists all users

/* AIRDROPS functions */

/* ACTIONS functions */

/* TRANSACTIONS functions */

/* TRANSFERS functions */

/* TOKEN functions */

To be continues..., (*6)

How to run tests

In order to test the library:, (*7)

Create a fork Clone the fork to your machine Install the depencies composer install Run the unit tests ./vendor/bin/phpunit tests, (*8)

The Versions

24/05 2018

dev-master

9999999-dev

Ost php wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Nguyễn Ngọc Lương