11.2.1 获取客服列表
获取客服列表的接口如下。
https:// api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN
获取客服列表时,POST数据示例如下。
{ "kf_list":[ { "kf_account":"[email protected]", "kf_headimgurl":"http:// mmbiz.qpic.cn/mmbiz/4whpV1VZl2iccsvYbHvnphkyGt nvjfUS8Ym0GSaLic0FD3vN0V8PILcibEGb2fPfEOmw/0", "kf_id":"1001", "kf_nick":"ntest1", "kf_wx":"kfwx1" }, { "kf_account":"[email protected]", "kf_headimgurl":"http:// mmbiz.qpic.cn/mmbiz/4whpV1VZl2iccsvYbHvnphkyGt nvjfUS8Ym0GSaLic0FD3vN0V8PILcibEGb2fPfEOmw/0", "kf_id":"1002", "kf_nick":"ntest2", "kf_wx":"kfwx2" }, { "kf_account":"[email protected]", "kf_headimgurl":"http:// mmbiz.qpic.cn/mmbiz/4whpV1VZl2iccsvYbHvnphkyGt nvjfUS8Ym0GSaLic0FD3vN0V8PILcibEGb2fPfEOmw/0", "kf_id":"1003", "kf_nick":"ntest3", "invite_wx":"kfwx3", "invite_expire_time":123456789, "invite_status":"waiting" } ]}
上述数据的参数说明如表11-3所示。
表11-3 获取客服列表的参数说明