差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
后一修订版 两侧同时换到之后的修订记录
cs:400systemintegration:api-open-platform [2019/06/27 06:54]
tinychang [获取历史会话详情]
cs:400systemintegration:api-open-platform [2019/11/15 03:59]
candywang
行 661: 行 661:
 |tenantId|int|Y|租户ID| |tenantId|int|Y|租户ID|
 |page|int|N|查询页码索引,​默认为1| |page|int|N|查询页码索引,​默认为1|
-|per_page|int|N|每页显示的数据容量,默认并且最大为50|+|per_page|int|N|每页显示的数据容量,默认为10,最大为50|
 |originType| String |N|渠道 不写为查询全部 要查询的话值为 网页:​webim,APP:app,微信渠道weixin,​微博为weibo,呼叫中心:phone| |originType| String |N|渠道 不写为查询全部 要查询的话值为 网页:​webim,APP:app,微信渠道weixin,​微博为weibo,呼叫中心:phone|
 |customerName| String |N|客户昵称| |customerName| String |N|客户昵称|
行 1230: 行 1230:
 } }
 </​code>​ </​code>​
 +
 +参数说明:
 +^名称^类型^说明^
 +|status|String|接口响应状态|
 +|msgId|String|消息Id|
 +|tenantId|Integer|租户Id|
 +|sessionServiceId|String|会话Id|
 +|messageType|String|消息类型|
 +|(fromUser)tenantId|Integer|租户Id|
 +|(fromUser)userId|String|Id|
 +|(fromUser)userType|String|类型|
 +|(fromUser)userScope|String|用户层级|
 +|(fromUser)nicename|String|昵称|
 +|(fromUser)scope|String|用户层级|
 +|(fromUser)bizId|String|租户Id|
 +|(fromUser)status|String|用户状态|
 +|contentType|String|消息内容类型|
 +|(bodies)|String|事件名称|
 +|(bodies)|String|消息类型|
 +|(ext.weichat)msgId|String|消息Id|
 +|(ext.weichat)originType|String|渠道类型|
 +|(ext.weichat)queueId|Long|技能组Id|
 +|(ext.weichat)queueName|String|技能组名称|
 +|(ext.weichat.event.eventName)|String|事件名|
 +|(ext.weichat.service_session)serviceSessionId|String|会话Id|
 +|(ext.weichat.service_session)robotId|Integer|机器人Id|
 +|(ext.weichat.service_session)state|String|会话状态|
 +|(ext.weichat.service_session)messageSeqId|Long|最大消息序列自增标记|
 +|(ext.weichat.service_session)agentUserId|String|坐席Id|
 +|(ext.weichat.service_session)agentUserType|Integer|坐席类型|
 +|(ext.weichat.service_session)expire|Boolean|会话是否过期|
 +|(ext.weichat.service_session)categoryId|Integer|标识该会话是否只有无效的访客消息|
 +|(ext.weichat.hide_flag)|Boolean|消息是否上屏|
 +|(body)from|String|发送者昵称|
 +|(body)to|String|接受者昵称|
 +|(body)channelType|String|关联类型|
 +|(body)timestamp|Date|时间戳|
 +|(body)tenantId |Integer|租户Id|
 +|(body)visitorUserId|String|访客Id|
 +|(body)originType|String|渠道类型|
 +|(body)channel_id|Integer|关联Id|
 +|first|Boolean|是否为第一页|
 +|last|Boolean|是否为最后一页|
 +|size|Integer|页大小|
 +|number|Integer|页码|
 +|numberOfElements|Integer|当前页element数量|
 +|totalPages|Integer|总页数|
 +|totalElements|Integer|总个数|
 +
 +===== 查询历史通话 =====
 +
 +==== 获取历史通话列表 ====
 +
 +根据通话时间、技能组、坐席、挂断原因、满意度评价等条件查询历史通话列表。
 +
 +  * Path: http://​kefu.easemob.com/​api/​platform/​tenants/​{tenantId}/​calldetails
 +  * HTTP Method: GET
 +  * Request Headers: Kefu-Token=${accessToken}
 +  * 可能的错误码:详见:[[#​错误码说明|错误码说明]]
 +
 +**Curl示例:**
 +
 +<code php>
 +curl --request GET \
 +  --url '​http://​kefu.easemob.com/​api/​platform/​tenants/​28994/​calldetails?​page=0&​size=14&​total_pages=1&​total_entries=10&​startTime=2019-11-10T00%3A00%3A00.000Z&​stopTime=2019-11-16T23%3A59%3A59.000Z&​contactType=Inbound&​orderType=DESC&​contactDisposition=ALL&​phoneNumber=&​kefuId=&​useStop=fal&​groupId=&​satisfaction=&​_=1573695779337'​ \
 +  --header '​Kefu-Token:​ a7f3d2bcb62721a3c67b8f567acfd553'​ \
 +</​code>​
 +
 +参数说明:
 +^名称^类型^是否非空(Y:​是;​N:​否)^说明^
 +|Kefu-Token| String |Y|调用接口的accessToken|
 +|tenantId|int|Y|租户ID|
  
 ===== 错误码说明 ===== ===== 错误码说明 =====