GET
GET = 'get'
Class User.
$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 |
get(string $openId, string $lang = 'zh_CN') : \EasyWeChat\Support\Collection
Fetch a user by open id.
string | $openId | |
string | $lang |
batchGet(array $openIds, string $lang = 'zh_CN') : \EasyWeChat\Support\Collection
Batch get users.
array | $openIds | |
string | $lang |
lists(string $nextOpenId = null) : \EasyWeChat\Support\Collection
List users.
string | $nextOpenId |
remark(string $openId, string $remark) : \EasyWeChat\Support\Collection
Set user remark.
string | $openId | |
string | $remark |
group(string $openId) : \EasyWeChat\Support\Collection
Get user's group id.
string | $openId |
getGroup(string $openId) : \EasyWeChat\Support\Collection
Get user's group.
string | $openId |
blacklist(string|null $beginOpenid = null) : \EasyWeChat\Support\Collection
Get black list.
string|null | $beginOpenid |
batchBlock(array $openidList) : \EasyWeChat\Support\Collection
Batch block user.
array | $openidList |
batchUnblock(array $openidList) : \EasyWeChat\Support\Collection
Batch unblock user.
array | $openidList |