Properties

$appid

$appid : 

Type

$appsecret

$appsecret : 

Type

$message

$message : 

Type

$api_uri

$api_uri : 

Type

$access_token

$access_token : 

Type

$errcode

$errcode : 

Type

Methods

getBlackList()

getBlackList(string  $begin_openid = '') : mixed

获取公众号的黑名单列表

Parameters

string $begin_openid

Returns

mixed

batchBlackList()

batchBlackList(array  $opened_list) : mixed

拉黑用户

Parameters

array $opened_list

Returns

mixed

batchUnBlackList()

batchUnBlackList(array  $opened_list) : mixed

取消拉黑用户

Parameters

array $opened_list

Returns

mixed

__construct()

__construct() 

instance()

instance(string  $api) : mixed

获取实例

Parameters

string $api

Returns

mixed

getMessage()

getMessage() : mixed

获取消息

Returns

mixed

setMessage()

setMessage() : boolean

获取微信发来的消息

Returns

boolean

__get()

__get(  $name) 

Parameters

$name

getMessageType()

getMessageType() : mixed

获取消息类型

Returns

mixed

getAccessToken()

getAccessToken() : string

获取access_token

Returns

string

setAccessToken()

setAccessToken(boolean  $force = false) 

设置access_token

Parameters

boolean $force

是否强制刷新access_token

Throws

\Exception

valid()

valid() : boolean

微信接口整合验证进行绑定

Returns

boolean

get()

get(array|mixed  $response) : array

根据微信服务器返回信息,验证是否发生错误 如果有错误时根据errcode值返回具体错误内容

Parameters

array|mixed $response

Returns

array

setRemark()

setRemark(string  $openid, string  $remark) : array

设置备注名称

Parameters

string $openid

用户微信号

string $remark

用户备注名称

Returns

array

getUserInfo()

getUserInfo(string  $openid) : array

获取用户基本信息

Parameters

string $openid

Returns

array

getUserInfoList()

getUserInfoList(  $param) : array

批量获取用户基本信息

Parameters

$param

Returns

array

getUserList()

getUserList(  $next_openid = '') : array

获取用户列表

Parameters

$next_openid

Returns

array