【实例简介】
【实例截图】
【核心代码】
/**
* class ReportService
*/
require_once('DataApiConnection.inc.php');
/**
* ReportService
*/
class ReportService {
private $apiUrl;
private $userName;
private $token;
private $ucid;
private $st;
/**
* construct
* @param string $apiUrl
* @param string $userName
* @param string $token
* @param string $ucid
* @param string $st
*/
public function __construct($apiUrl, $userName, $token, $ucid, $st) {
$this->apiUrl = $apiUrl;
$this->userName = $userName;
$this->token = $token;
$this->ucid = $ucid;
$this->st = $st;
}
/**
* get site list
* @return array
*