GET
GET = 'get'
Class Stats.
$http : \EasyWeChat\Core\Http
Http instance.
$accessToken : \EasyWeChat\Core\AccessToken
The request token.
__construct(\EasyWeChat\Core\AccessToken $accessToken)
Constructor.
\EasyWeChat\Core\AccessToken | $accessToken |
getHttp() : \EasyWeChat\Core\Http
Return the http instance.
setHttp(\EasyWeChat\Core\Http $http) : $this
Set the http instance.
\EasyWeChat\Core\Http | $http |
getAccessToken() : \EasyWeChat\Core\AccessToken
Return the current accessToken.
setAccessToken(\EasyWeChat\Core\AccessToken $accessToken) : $this
Set the request token.
\EasyWeChat\Core\AccessToken | $accessToken |
parseJSON(string $method, array $args) : \EasyWeChat\Support\Collection
Parse JSON from response and check error.
string | $method | |
array | $args |
| null
deviceSummary(array $deviceIdentifier, integer $beginDate, integer $endDate) : \EasyWeChat\Support\Collection
Fetch statistics data by deviceId.
array | $deviceIdentifier | |
integer | $beginDate | (Unix timestamp) |
integer | $endDate | (Unix timestamp) |
batchDeviceSummary(integer $timestamp, integer $pageIndex) : \EasyWeChat\Support\Collection
Fetch all devices statistics data by date.
integer | $timestamp | |
integer | $pageIndex |
pageSummary(integer $pageId, integer $beginDate, integer $endDate) : \EasyWeChat\Support\Collection
Fetch statistics data by pageId.
integer | $pageId | |
integer | $beginDate | (Unix timestamp) |
integer | $endDate | (Unix timestamp) |
batchPageSummary(integer $timestamp, integer $pageIndex) : \EasyWeChat\Support\Collection
Fetch all pages statistics data by date.
integer | $timestamp | |
integer | $pageIndex |