-
Notifications
You must be signed in to change notification settings - Fork 0
会话服务接口
Dong Chen edited this page Jun 24, 2016
·
1 revision
cdcchen\wechat\qy\ChatClient
$client = new ChatClient($accessToken);
Request
cdcchen\wechat\qy\chat\ChatCreateRequest
Client
$data = $client->create($name, $owner, array $users, $chatId = null);
Request
cdcchen\wechat\qy\chat\ChatInfoRequest
Client
$data = $client->getInfo($id);
Request
cdcchen\wechat\qy\chat\ChatUpdateRequest
Client
$data = $client->update(ChatUpdateRequest $request);
Request
cdcchen\wechat\qy\chat\ChatQuitRequest
Client
$data = $client->quit($chatId, $opUser);
Request
cdcchen\wechat\qy\chat\ChatClearNotifyRequest
Client
$data = $client->clearNotify($opUser, $chatType, $id);
Request
cdcchen\wechat\qy\chat\ChatSetMuteRequest
Client
$data = $client->setMute(array $openUsers, array $closeUsers = []);
Request
cdcchen\wechat\qy\chat\ChatSendMessageRequest
Client
$data = $client->send($receiverType, $receiverId, $sender, $msgType, $content);
Request
cdcchen\wechat\qy\chat\ChatSendTextRequest
Client
$data = $client->sendText($content, $receiverId, $sender, $receiverType);
Request
cdcchen\wechat\qy\chat\ChatSendImageRequest
Client
$data = $client->sendImage($mediaId, $receiverId, $sender, $receiverType);
Request
cdcchen\wechat\qy\chat\ChatSendFileRequest
Client
$data = $client->sendFile($mediaId, $receiverType, $receiverId, $sender);
Request
cdcchen\wechat\qy\chat\ChatSendVoiceRequest
Client
$data = $client->sendVoice($mediaId, $receiverType, $receiverId, $sender);
Request
cdcchen\wechat\qy\chat\ChatSendLinkRequest
Client
$data = $client->sendLink($receiverType, $receiverId, $sender, $title, $url, $thumbMediaId, $description = '');