GET
GET = 'get'
Class Device.
$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 |
apply(integer $quantity, string $reason, string $comment = '', integer $poiId = null) : \EasyWeChat\Support\Collection
Apply device ids.
integer | $quantity | |
string | $reason | |
string | $comment | |
integer | $poiId |
getStatus(integer $applyId) : \EasyWeChat\Support\Collection
Get audit status.
integer | $applyId |
update(array $deviceIdentifier, string $comment) : \EasyWeChat\Support\Collection
Update a device comment.
array | $deviceIdentifier | |
string | $comment |
bindLocation(array $deviceIdentifier, integer $poiId, integer $type = 1, string $poiAppid = null) : \EasyWeChat\Support\Collection
Bind location for device.
array | $deviceIdentifier | |
integer | $poiId | |
integer | $type | |
string | $poiAppid |
fetchByIds(array $deviceIdentifiers) : \EasyWeChat\Support\Collection
Fetch batch of devices by deviceIds.
array | $deviceIdentifiers |
pagination(integer $lastSeen, integer $count) : \EasyWeChat\Support\Collection
Pagination to fetch batch of devices.
integer | $lastSeen | |
integer | $count |
fetchByApplyId(integer $applyId, integer $lastSeen, integer $count) : \EasyWeChat\Support\Collection
Fetch batch of devices by applyId.
integer | $applyId | |
integer | $lastSeen | |
integer | $count |
fetch(array $params) : \EasyWeChat\Support\Collection
Fetch batch of devices.
array | $params |