mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 13:06:54 +08:00
按照最新微信官方文档对客服会话控制接口进行修正
This commit is contained in:
parent
3534234d91
commit
78f44b2bb0
@ -85,12 +85,12 @@ public interface WxMpKefuService {
|
||||
*/
|
||||
boolean kfAccountDel(String kfAccount) throws WxErrorException;
|
||||
|
||||
//*******************多客服会话控制接口***********************//
|
||||
//*******************客服会话控制接口***********************//
|
||||
/**
|
||||
* <pre>
|
||||
* 创建会话
|
||||
* 开发者可以使用本接口,为多客服的客服工号创建会话,将某个客户直接指定给客服工号接待,需要注意此接口不会受客服自动接入数以及自动接入开关限制。只能为在线的客服(PC客户端在线,或者已绑定多客服助手)创建会话。
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">多客服会话控制接口</a>
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1458044820&token=&lang=zh_CN">客服会话控制接口</a>
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/create?access_token=ACCESS_TOKEN
|
||||
* </pre>
|
||||
*/
|
||||
@ -100,7 +100,7 @@ public interface WxMpKefuService {
|
||||
* <pre>
|
||||
* 关闭会话
|
||||
* 开发者可以使用本接口,关闭一个会话。
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">多客服会话控制接口</a>
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">客服会话控制接口</a>
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/close?access_token=ACCESS_TOKEN
|
||||
* </pre>
|
||||
*/
|
||||
@ -109,8 +109,8 @@ public interface WxMpKefuService {
|
||||
/**
|
||||
* <pre>
|
||||
* 获取客户的会话状态
|
||||
* 开发者可以通过本接口获取客户当前的会话状态。
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">多客服会话控制接口</a>
|
||||
* 此接口获取一个客户的会话,如果不存在,则kf_account为空。
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">客服会话控制</a>
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getsession?access_token=ACCESS_TOKEN&openid=OPENID
|
||||
* </pre>
|
||||
*/
|
||||
@ -120,7 +120,7 @@ public interface WxMpKefuService {
|
||||
* <pre>
|
||||
* 获取客服的会话列表
|
||||
* 开发者可以通过本接口获取某个客服正在接待的会话列表。
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">多客服会话控制接口</a>
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1458044820&token=&lang=zh_CN">客服会话控制</a>
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getsessionlist?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
|
||||
* </pre>
|
||||
*/
|
||||
@ -130,7 +130,7 @@ public interface WxMpKefuService {
|
||||
* <pre>
|
||||
* 获取未接入会话列表
|
||||
* 开发者可以通过本接口获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话。
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki/4/4b256cfb246b22ad020e07cf8a61a738.html">多客服会话控制接口</a>
|
||||
* 详情请见:<a href="http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1458044820&token=&lang=zh_CN">客服会话控制</a>
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/getwaitcase?access_token=ACCESS_TOKEN
|
||||
* </pre>
|
||||
*/
|
||||
|
@ -18,11 +18,19 @@ public class WxMpKfSession {
|
||||
private String kfAccount;
|
||||
|
||||
/**
|
||||
* createtime 会话接入的时间 或者 来访时间,UNIX时间戳
|
||||
* createtime 会话接入的时间,UNIX时间戳
|
||||
* 该返回值 存在于 获取客服会话列表接口
|
||||
*/
|
||||
@SerializedName("createtime")
|
||||
private long createTime;
|
||||
|
||||
/**
|
||||
* latest_time 粉丝的最后一条消息的时间,UNIX时间戳
|
||||
* 该返回值 存在于 获取未接入会话列表接口
|
||||
*/
|
||||
@SerializedName("latest_time")
|
||||
private long latestTime;
|
||||
|
||||
/**
|
||||
* openid 客户openid
|
||||
*/
|
||||
@ -58,4 +66,11 @@ public class WxMpKfSession {
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public long getLatestTime() {
|
||||
return this.latestTime;
|
||||
}
|
||||
|
||||
public void setLatestTime(long latestTime) {
|
||||
this.latestTime = latestTime;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user