public class WxMpKefuServiceImpl extends Object implements WxMpKefuService
| 构造器和说明 |
|---|
WxMpKefuServiceImpl(WxMpService wxMpService) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
kfAccountAdd(WxMpKfAccountRequest request)
添加客服账号
详情请见:客服管理
接口url格式:https://api.weixin.qq.com/customservice/kfaccount/add?
|
boolean |
kfAccountDel(String kfAccount)
删除客服账号
详情请见:客服管理
接口url格式:https://api.weixin.qq.com/customservice/kfaccount/del?
|
boolean |
kfAccountUpdate(WxMpKfAccountRequest request)
设置客服信息(更新)
详情请见:客服管理
接口url格式:https://api.weixin.qq.com/customservice/kfaccount/update?
|
boolean |
kfAccountUploadHeadImg(String kfAccount,
File imgFile)
上传客服头像
详情请见:客服管理
接口url格式:http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?
|
WxMpKfList |
kfList()
获取客服基本信息
详情请见:客服管理
接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getkflist?
|
WxMpKfOnlineList |
kfOnlineList()
获取在线客服接待信息
详情请见:客服管理
接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getonlinekflist?
|
boolean |
kfSessionClose(String openid,
String kfAccount,
String text)
关闭会话
开发者可以使用本接口,关闭一个会话。
|
boolean |
kfSessionCreate(String openid,
String kfAccount,
String text)
创建会话
开发者可以使用本接口,为多客服的客服工号创建会话,将某个客户直接指定给客服工号接待,需要注意此接口不会受客服自动接入数以及自动接入开关限制。
|
WxMpKfSessionGetResult |
kfSessionGet(String openid)
获取客户的会话状态
开发者可以通过本接口获取客户当前的会话状态。
|
WxMpKfSessionWaitCaseList |
kfSessionGetWaitCase()
获取未接入会话列表
开发者可以通过本接口获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话。
|
WxMpKfSessionList |
kfSessionList(String kfAccount)
获取客服的会话列表
开发者可以通过本接口获取某个客服正在接待的会话列表。
|
public WxMpKefuServiceImpl(WxMpService wxMpService)
public WxMpKfList kfList() throws WxErrorException
WxMpKefuService获取客服基本信息 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN
kfList 在接口中 WxMpKefuServiceWxErrorExceptionpublic WxMpKfOnlineList kfOnlineList() throws WxErrorException
WxMpKefuService获取在线客服接待信息 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getonlinekflist?access_token=ACCESS_TOKEN
kfOnlineList 在接口中 WxMpKefuServiceWxErrorExceptionpublic boolean kfAccountAdd(WxMpKfAccountRequest request) throws WxErrorException
WxMpKefuService添加客服账号 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN
kfAccountAdd 在接口中 WxMpKefuServiceWxErrorExceptionpublic boolean kfAccountUpdate(WxMpKfAccountRequest request) throws WxErrorException
WxMpKefuService设置客服信息(更新) 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/update?access_token=ACCESS_TOKEN
kfAccountUpdate 在接口中 WxMpKefuServiceWxErrorExceptionpublic boolean kfAccountUploadHeadImg(String kfAccount, File imgFile) throws WxErrorException
WxMpKefuService上传客服头像 详情请见:客服管理 接口url格式:http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
kfAccountUploadHeadImg 在接口中 WxMpKefuServiceWxErrorExceptionpublic boolean kfAccountDel(String kfAccount) throws WxErrorException
WxMpKefuService删除客服账号 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
kfAccountDel 在接口中 WxMpKefuServiceWxErrorExceptionpublic boolean kfSessionCreate(String openid, String kfAccount, String text) throws WxErrorException
WxMpKefuService创建会话 开发者可以使用本接口,为多客服的客服工号创建会话,将某个客户直接指定给客服工号接待,需要注意此接口不会受客服自动接入数以及自动接入开关限制。只能为在线的客服(PC客户端在线,或者已绑定多客服助手)创建会话。 详情请见:多客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/create?access_token=ACCESS_TOKEN
kfSessionCreate 在接口中 WxMpKefuServiceWxErrorExceptionpublic boolean kfSessionClose(String openid, String kfAccount, String text) throws WxErrorException
WxMpKefuService关闭会话 开发者可以使用本接口,关闭一个会话。 详情请见:多客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/close?access_token=ACCESS_TOKEN
kfSessionClose 在接口中 WxMpKefuServiceWxErrorExceptionpublic WxMpKfSessionGetResult kfSessionGet(String openid) throws WxErrorException
WxMpKefuService获取客户的会话状态 开发者可以通过本接口获取客户当前的会话状态。 详情请见:多客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getsession?access_token=ACCESS_TOKEN&openid=OPENID
kfSessionGet 在接口中 WxMpKefuServiceWxErrorExceptionpublic WxMpKfSessionList kfSessionList(String kfAccount) throws WxErrorException
WxMpKefuService获取客服的会话列表 开发者可以通过本接口获取某个客服正在接待的会话列表。 详情请见:多客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getsessionlist?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
kfSessionList 在接口中 WxMpKefuServiceWxErrorExceptionpublic WxMpKfSessionWaitCaseList kfSessionGetWaitCase() throws WxErrorException
WxMpKefuService获取未接入会话列表 开发者可以通过本接口获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话。 详情请见:多客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getwaitcase?access_token=ACCESS_TOKEN
kfSessionGetWaitCase 在接口中 WxMpKefuServiceWxErrorExceptionCopyright © 2016. All rights reserved.