public interface WxMpKefuService
boolean
kfAccountAdd(WxMpKfAccountRequest request)
kfAccountDel(String kfAccount)
kfAccountInviteWorker(WxMpKfAccountRequest request)
kfAccountUpdate(WxMpKfAccountRequest request)
kfAccountUploadHeadImg(String kfAccount, File imgFile)
WxMpKfList
kfList()
WxMpKfMsgList
kfMsgList(Date startTime, Date endTime)
kfMsgList(Date startTime, Date endTime, Long msgId, Integer number)
WxMpKfOnlineList
kfOnlineList()
kfSessionClose(String openid, String kfAccount)
kfSessionCreate(String openid, String kfAccount)
WxMpKfSessionGetResult
kfSessionGet(String openid)
WxMpKfSessionWaitCaseList
kfSessionGetWaitCase()
WxMpKfSessionList
kfSessionList(String kfAccount)
sendKefuMessage(WxMpKefuMessage message)
boolean sendKefuMessage(WxMpKefuMessage message) throws WxErrorException
发送客服消息 详情请见: 发送客服消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN
WxErrorException
WxMpKfList kfList() throws WxErrorException
获取客服基本信息 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN
WxMpKfOnlineList kfOnlineList() throws WxErrorException
获取在线客服接待信息 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getonlinekflist?access_token=ACCESS_TOKEN
boolean kfAccountAdd(WxMpKfAccountRequest request) throws WxErrorException
添加客服账号 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN
boolean kfAccountUpdate(WxMpKfAccountRequest request) throws WxErrorException
设置客服信息(即更新客服信息) 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/update?access_token=ACCESS_TOKEN
boolean kfAccountInviteWorker(WxMpKfAccountRequest request) throws WxErrorException
设置客服信息(即更新客服信息) 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/inviteworker?access_token=ACCESS_TOKEN
boolean kfAccountUploadHeadImg(String kfAccount, File imgFile) throws WxErrorException
上传客服头像 详情请见:客服管理 接口url格式:http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
boolean kfAccountDel(String kfAccount) throws WxErrorException
删除客服账号 详情请见:客服管理 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException
创建会话 此接口在客服和用户之间创建一个会话,如果该客服和用户会话已存在,则直接返回0。指定的客服帐号必须已经绑定微信号且在线。 详情请见:客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/create?access_token=ACCESS_TOKEN
boolean kfSessionClose(String openid, String kfAccount) throws WxErrorException
关闭会话 开发者可以使用本接口,关闭一个会话。 详情请见:客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/close?access_token=ACCESS_TOKEN
WxMpKfSessionGetResult kfSessionGet(String openid) throws WxErrorException
获取客户的会话状态 此接口获取一个客户的会话,如果不存在,则kf_account为空。 详情请见:客服会话控制接口 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getsession?access_token=ACCESS_TOKEN&openid=OPENID
WxMpKfSessionList kfSessionList(String kfAccount) throws WxErrorException
获取客服的会话列表 开发者可以通过本接口获取某个客服正在接待的会话列表。 详情请见:客服会话控制 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getsessionlist?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
WxMpKfSessionWaitCaseList kfSessionGetWaitCase() throws WxErrorException
获取未接入会话列表 开发者可以通过本接口获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话。 详情请见:客服会话控制 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getwaitcase?access_token=ACCESS_TOKEN
WxMpKfMsgList kfMsgList(Date startTime, Date endTime, Long msgId, Integer number) throws WxErrorException
获取聊天记录(原始接口) 此接口返回的聊天记录中,对于图片、语音、视频,分别展示成文本格式的[image]、[voice]、[video] 详情请见:获取聊天记录 接口url格式: https://api.weixin.qq.com/customservice/msgrecord/getmsglist?access_token=ACCESS_TOKEN
startTime
endTime
msgId
number
WxMpKfMsgList kfMsgList(Date startTime, Date endTime) throws WxErrorException
获取聊天记录(优化接口,返回指定时间段内所有的聊天记录) 此接口返回的聊天记录中,对于图片、语音、视频,分别展示成文本格式的[image]、[voice]、[video] 详情请见:获取聊天记录 接口url格式: https://api.weixin.qq.com/customservice/msgrecord/getmsglist?access_token=ACCESS_TOKEN
Copyright © 2016. All rights reserved.