Client library for WebX Next API.
To use it, you need to fill your username, API key and remote server URL in the api.php
file and require it in your script...
<?php
require_once __DIR__.'/api.php';
$info = (new \WebX\Api())->getAccountInfo();
<?php
require_once __DIR__.'/api.php';
$balance = (new \WebX\Api())->getBalance();
<?php
require_once __DIR__.'/api.php';
$currency = (new \WebX\Api())->getCurrency();
<?php
require_once __DIR__.'/api.php';
$services = (new \WebX\Api())->getImeiServices();
<?php
require_once __DIR__.'/api.php';
$services = (new \WebX\Api())->getServerServices();
<?php
require_once __DIR__.'/api.php';
$services = (new \WebX\Api())->getFileServices();
<?php
require_once __DIR__.'/api.php';
$order = (new \WebX\ImeiOrder())->setServiceId(1)->setDevice('353272079261960')->send());
<?php
require_once __DIR__.'/api.php';
$order = (new \WebX\ServerOrder())->setServiceId(1)->setQuantity(2)->send());
<?php
require_once __DIR__.'/api.php';
$order = (new \WebX\FileOrder())->setServiceId(1)->setDevice('filename.bcl')->send());
<?php
require_once __DIR__.'/api.php';
$order = (new \WebX\ImeiOrder())->setId(1)->get();
<?php
require_once __DIR__.'/api.php';
$order = (new \WebX\ServerOrder())->setId(1)->get();
<?php
require_once __DIR__.'/api.php';
$order = (new \WebX\FileOrder())->setId(1)->get();
Do not hesitate to contact us at hello@webx.one in case of any issue or question.
ⓒ WebX Team. All rights reserved.