日韩在线观看-日韩在线成人-日韩在线不卡视频-日韩在线不卡视频-国产精品99-国产精品99

客服

使用客服系統(tǒng)可以向用戶發(fā)送消息以及群發(fā)消息,客服的管理等功能。

客服管理

獲取所有客服

$officialAccount->customerService->list();

獲取所有在線的客服

$officialAccount->customerService->online();

添加客服

$officialAccount->customerService->create('foo@test', '客服1');

修改客服

$officialAccount->customerService->update('foo@test', '客服1');

刪除賬號

$officialAccount->customerService->delete('foo@test');

設(shè)置客服頭像

// $avatarPath 為本地圖片路徑,非 URL
$officialAccount->customerService->setAvatar('foo@test', $avatarPath);

獲取客服與客戶聊天記錄

$officialAccount->customerService->messages($startTime, $endTime, $msgId = 1, $number = 10000);

使用示例:

<?php

$records = $officialAccount->customerService->messages('2015-06-07', '2015-06-21', 1, 20000);

主動發(fā)送消息給用戶

$officialAccount->customerService->send(array $message);

$message 為數(shù)組,請參考:消息

使用示例:

暫略。

邀請微信用戶加入客服

以賬號 foo@test 邀請 微信號 為 xxxx 的微信用戶加入客服。

$officialAccount->customerService->invite('foo@test', 'xxxx');

客服會話控制

創(chuàng)建會話

$officialAccount->customerServiceSession->create('test1@test', 'OPENID');

關(guān)閉會話

$officialAccount->customerServiceSession->close('test1@test', 'OPENID');

獲取客戶會話狀態(tài)

$officialAccount->customerServiceSession->get('OPENID');

獲取客服會話列表

$officialAccount->customerServiceSession->list('test1@test');

獲取未接入會話列表

$officialAccount->customerServiceSession->waiting();
主站蜘蛛池模板: 大兵相声小品蠢得死| 黄网站免费观看| 香港论理| 九龙虫粪便的功效与吃法| 爸爸去哪儿第一季是哪一年播出| 唐安| 斧头(俄罗斯电影) 战争片| 周星驰的全部电影免费观看| 培根《谈读书》原文及翻译| 夜魔3| 天降奇缘 电视剧| 小猪佩奇免费版中文第三季| 孙嘉欣| 贝德弗智能锁怎么样| 房子传| 重庆新闻频道| 人蛇大战 电影| 水儿武士电影完整免费观看 | 怀秋| 电影《醉猴》刘家良主演| 琅琊榜3第三部免费播放| 阴阳界 电影| 六年级五单元作文| 流浪地球2演员表| 错爱电影| 漂亮女员工被老板糟蹋| 减肥可以吃桃子吗?| 汤姆·塞兹摩尔| 我和我的少年时光| 小涛讲电影| 陈雨田| tvb翡翠台直播| 蓝家宝电影| 抖音网页版登录官网| 央视7套| 《夏日情人》| 今日航班一览表| 八月照相馆| 局外人电影| 《幸福花园动漫双男主》| 还珠格格演员表|