You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

<?php
require_once(dirname(__FILE__) . '/' . '../GTClient.php');
define("APPKEY","*");
define("APPID","*");
define("MS","*");
define("URL","*");
define("CID1","*");
define("CID2","*");
define("CID3","*");
$taskId = null;
$api = new GTClient(URL,APPKEY,APPID,MS);
queryPushResultByTaskIds();
queryPushResultByGroupName();
queryUserDataByDate();
queryOnlineUserData();
queryPushResultByDate();
function queryPushResultByTaskIds(){
global $api;
echo json_encode($api->statisticsApi()->queryPushResultByTaskIds(array("taskid")));
}
function queryPushResultByGroupName(){
global $api;
echo json_encode($api->statisticsApi()->queryPushResultByGroupName("test"));
}
function queryUserDataByDate(){
global $api;
echo json_encode($api->statisticsApi()->queryUserDataByDate("2020-11-30"));
}
function queryOnlineUserData(){
global $api;
echo json_encode($api->statisticsApi()->queryOnlineUserData());
}
function queryPushResultByDate(){
global $api;
echo json_encode($api->statisticsApi()->queryPushResultByDate("2020-11-30"));
}