public class CustomProxy extends MPlatformProxy
Description:
tokenManagerweixinRequestClient| 构造器和说明 |
|---|
CustomProxy(TokenManager tokenManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResult |
closeCustomSession(String userOpenId,
String kfAccount,
String text)
关闭会话
|
ApiResult |
createCustomAccount(String id,
String name)
新增客服账号
|
ApiResult |
createCustomSession(String userOpenId,
String kfAccount,
String text)
创建会话
开发者可以使用本接口,为多客服的客服工号创建会话,将某个客户直接指定给客服工号接待,需要注意此接口不会受客服自动接入数以及自动接入开关限制。
|
ApiResult |
deleteCustomAccount(String id)
删除客服账号
|
List<CustomChatRecord> |
getCustomChatRecord(Date startTime,
Date endTime,
int number)
客服聊天记录
|
CustomChatSession |
getCustomSession(String userOpenId)
获取客户的会话状态:获取客户当前的会话状态。
|
ApiResult |
inviteCustomAccount(String kfAccount,
String inviteAccount)
邀请绑定客服帐号
新添加的客服帐号是不能直接使用的,只有客服人员用微信号绑定了客服账号后,方可登录Web客服进行操作。
|
List<CustomAccount> |
listCustomAccount()
获取公众号中所设置的客服基本信息,包括客服工号、客服昵称、客服登录账号
|
List<CustomChatSession> |
listCustomSession(String kfAccount)
获取客服的会话列表:获取某个客服正在接待的会话列表。
|
CustomChatSession.CustomChatSessionCounter |
listCustomWaitSession()
获取未接入会话列表:获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话。
|
List<CustomOnlineAccount> |
listOnlineCustomAccount()
获取在线客服在线状态(手机在线、PC客户端在线、手机和PC客户端全都在线)、客服自动接入最大值、 客服当前接待客户数
|
ApiResult |
updateCustomAccount(String id,
String name)
更新客服账号
|
ApiResult |
uploadCustomAvatar(String accountId,
InputStream is,
String fileName)
上传客服头像
|
getTokenManagerpublic CustomProxy(TokenManager tokenManager)
public List<CustomChatRecord> getCustomChatRecord(Date startTime, Date endTime, int number) throws WeixinException
startTime - 查询开始时间endTime - 查询结束时间 每次查询不能跨日查询number - 最多10000条WeixinExceptionCustomChatRecord,
查询客服聊天记录,
查询客服聊天记录public List<CustomAccount> listCustomAccount() throws WeixinException
WeixinExceptionCustomAccount,
获取客服基本信息public List<CustomOnlineAccount> listOnlineCustomAccount() throws WeixinException
WeixinExceptionCustomOnlineAccount,
获取客服在线信息public ApiResult createCustomAccount(String id, String name) throws WeixinException
id - 完整客服账号,格式为:账号前缀@公众号微信号,账号前缀最多10个字符,必须是英文或者数字字符。如果没有公众号微信号,
请前往微信公众平台设置。name - 客服昵称,最长6个汉字或12个英文字符WeixinExceptionpublic ApiResult updateCustomAccount(String id, String name) throws WeixinException
id - 完整客服账号,格式为:账号前缀@公众号微信号,账号前缀最多10个字符,必须是英文或者数字字符。如果没有公众号微信号,
请前往微信公众平台设置。name - 客服昵称,最长6个汉字或12个英文字符WeixinExceptionpublic ApiResult inviteCustomAccount(String kfAccount, String inviteAccount) throws WeixinException
kfAccount - 完整客服帐号,格式为:帐号前缀@公众号微信号inviteAccount - 接收绑定邀请的客服微信号WeixinExceptionpublic ApiResult uploadCustomAvatar(String accountId, InputStream is, String fileName) throws WeixinException
accountId - 完整客服账号,格式为:账号前缀@公众号微信号is - 头像图片文件必须是jpg格式,推荐使用640*640大小的图片以达到最佳效果fileName - 文件名 为空时将自动生成WeixinExceptionpublic ApiResult deleteCustomAccount(String id) throws WeixinException
id - 完整客服账号,格式为:账号前缀@公众号微信号WeixinExceptionpublic ApiResult createCustomSession(String userOpenId, String kfAccount, String text) throws WeixinException
开发者可以使用本接口,为多客服的客服工号创建会话,将某个客户直接指定给客服工号接待,需要注意此接口不会受客服自动接入数以及自动接入开关限制。 只能为在线的客服(PC客户端在线,或者已绑定多客服助手)创建会话。
userOpenId - 用户的userOpenIdkfAccount - 完整客服账号,格式为:账号前缀@公众号微信号text - 附加信息,文本会展示在客服人员的多客服客户端WeixinExceptionpublic ApiResult closeCustomSession(String userOpenId, String kfAccount, String text) throws WeixinException
userOpenId - 用户的userOpenIdkfAccount - 完整客服账号,格式为:账号前缀@公众号微信号text - 附加信息,文本会展示在客服人员的多客服客户端WeixinExceptionpublic CustomChatSession getCustomSession(String userOpenId) throws WeixinException
userOpenId - 用户的openidWeixinExceptionCustomChatSession,
获取会话状态public List<CustomChatSession> listCustomSession(String kfAccount) throws WeixinException
kfAccount - 完整客服账号,格式为:账号前缀@公众号微信号,账号前缀最多10个字符,必须是英文或者数字字符。WeixinExceptionCustomChatSession,
获取客服的会话列表public CustomChatSession.CustomChatSessionCounter listCustomWaitSession() throws WeixinException
WeixinExceptionCustomChatSession,
CustomChatSession.CustomChatSessionCounter,
获取客服的会话列表Copyright © 2020. All rights reserved.