PHP code example of ganlvtech / php-xjtu-api
1. Go to this page and download the library: Download ganlvtech/php-xjtu-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ganlvtech / php-xjtu-api example snippets
use XjtuApi\XjtuNetTraffic;
fic();
$response = $xjtuNetTraffic->login('username', 'password');
var_dump($response);
$response = $xjtuNetTraffic->current();
var_dump($response);
$response = $xjtuNetTraffic->logout();
var_dump($response);