Skip to main content

基础信息获取

1、获取在线坐席列表

CTI.Info.getAgentList(cb)

1.1 返回数据示例

{
"code": 200,
"message": "ok",
"data": [
{
"ag_id": "2389",
"pho_num": "8004",
"ag_name": "\u90ce\u745e\u6052",
"ag_num": "6158"
},
{
"ag_id": "2161",
"pho_num": "8039",
"ag_name": "\u62db\u80582",
"ag_num": "8039"
}
]
}

1.2 data字段说明

字段说明
ag_id坐席id
ag_num坐席工号
ag_name坐席名称
pho_num分机号码

2、获取置忙原因

CTI.Info.getBusyReason(cb)

2.1 返回数据示例

{
"code": 200,
"message": "ok",
"data": [
{
"id": "58",
"vcc_id": "2",
"ag_stat": "1",
"stat_reason": "\u5c0f\u4f11"
},
{
"id": "59",
"vcc_id": "2",
"ag_stat": "1",
"stat_reason": "\u5348\u4f11"
},
{
"id": "73",
"vcc_id": "2",
"ag_stat": "1",
"stat_reason": "\u4f1a\u8bae"
},
{
"id": "74",
"vcc_id": "2",
"ag_stat": "1",
"stat_reason": "\u5fd9\u788c\u4e2d"
},
{
"id": "76",
"vcc_id": "2",
"ag_stat": "1",
"stat_reason": "\u5c31\u9910"
}
]
}

2.2 data字段说明

字段说明
id明细ID
vcc_id企业ID
ag_stat原因类型(1登录2置忙)
stat_reason原因名称

3、获取坐席基础信息

CTI.Info.getAgentBaseInfo(cb)

3.1 返回数据示例

{
"code": 200,
"message": "success",
"data": {
"id": "200500",
"ag_name": "\u738b\u6210",
"vcc_id": "2000005",
"ag_num": "1001",
"pho_num": "",
"pho_id": "0",
"pho_type": null,
"ag_password": "e10adc3949ba59abbe56e057f20f883e",
"que_id": "200024-1",
"inpop_page": "",
"outpop_page": "",
"que": [
{
"que_name": "\u547c\u5165\u547c\u51fa\u6280\u80fd\u7ec4",
"id": "200024"
}
],
"cc_phone": {
"59222702": "59222702"
}
}
}

3.2 data字段说明

字段说明
id明细ID
vcc_id企业ID
ag_stat原因类型(1登录2置忙)
stat_reason原因名称
id坐席ID
ag_name坐席名称
vcc_id企业ID
ag_num坐席工号
pho_num分机号
pho_id分机ID
pho_type分机类型(1: PSTN电话2: SIP网关5: SIP远程分机)
ag_password坐席密码
que_id技能组ID
inpop_page呼入弹屏页面地址
outpop_page呼出弹屏页面地址
que技能组信息
cc_phone中继号码信息

4、获取所有技能组

CTI.Info.getQueue(cb)

4.1 返回数据示例

{
"code": 200,
"message": "ok",
"data": [
{
"id": "200024",
"que_name": "\u547c\u5165\u547c\u51fa\u6280\u80fd\u7ec4",
"vcc_id": 1,
"vcc_code": "ztth"
}
]
}

4.2 data字段说明

字段说明
id技能组ID
que_name技能组名称
vcc_id技能组所属的企业id
vcc_code技能组所属的企业代码

5、获取正在通话中的坐席

CTI.Info.getOnlineAgent(cb)

5.1 返回数据示例

{
"code": 200,
"message": "ok",
"data": [
{
"ag_id": "10",
"pho_num": "1322",
"ag_time": "3:59:59"
}
]
}

5.2 data字段说明

字段说明
ag_id坐席id
pho_num分机号码
ag_time状态持续的时间(HH:MM:SS)

返回给cb方法的参数

参数类型描述
codenumber成功为200,401、402为企业代码错误,404为坐席工号不存在
dataobject对应获取的数据
messagestring消息的文字描述,成功通常是success

6、获取技能组排队数据

CTI.Info.getQueueUpNum(params,cb)

6.1 接口参数

字段说明
queIds技能组ids 例如 ["210204","216191"]

6.2 返回数据示例

{
"code": 200,
"data": [
{
"queId": "211589",
"totalQueueUpNum": 0
}
],
"message": "success"
}

6.3 data字段说明

字段说明
totalQueueUpNum排队数