dev-master
9999999-devOst php wrapper
MIT
The Requires
- php >=5.3.0
- ext-curl *
The Development Requires
by Nguyễn Ngọc Lương
Ost php wrapper
, (*1)
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)
, (*3)
A Branded Token economy must be setup first in order to use the API, see https://kit.ost.com for more information., (*4)
composer require ostkitphpwrapper/ostkit:"dev-master"
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)
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)
Ost php wrapper
MIT