调用GetAgentBasisStatus获取热线监控下坐席纬度状态量。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetAgentBasisStatus

系统规定参数。取值:GetAgentBasisStatus

InstanceId String ccc_xp_pre-cn-***

实例ID。

登录智能联络中心控制台,在实例管理中查看实例ID。

StartDate Long 1615083365000

开始日期时间戳。单位:毫秒。

EndDate Long 1617761765000

结束日期时间戳。单位:毫秒。

PageSize Integer 20

每页大小。默认值:10

CurrentPage Integer 1

当前页。默认值:1

AgentIds Array of Long ["2256****","2257****"]

坐席ID。

DepIds Array of Long ["6083****","6084****"]

部门ID。

返回数据

名称 类型 示例值 描述
RequestId String EE338D98-9BD3-4413-B165

请求ID。

Message String OK

状态码描述。

Code String 200

状态码。返回200表示请求成功。

Success String true

接口调用是否成功。

Data Object

数据列表。

PageNum Integer 1

当前页数。

PageSize Integer 2000

每页大小。

TotalNum Integer 4

总记录数。

Rows String {"tenantid":"905","servicerid":"732037","tenantname":"测试","recordgmtmodified":"2021-04-01 11:36:50","pkid":"73203720210401","statusstarttime":"2021-04-01 11:36:50","recordgmtcreate":"2021-04-01 10:06:24","departmentid":"945044","departmentname":"测试技能组","lstlogintime":"2021-04-01 10:06:24","dateid":"20210401","triggerreason":"3","servicerstatus":"D","assignstatus":"1","servicerrealname":"xx","servicerstatusname":"签出","fstlogintime":"2021-04-01 10:06:24","servicername":"xx"}

信息为List<Map>类型的JSON字符串。

  • servicer_id:坐席ID
  • servicer_name:坐席名称
  • servicer_real_name:坐席真实姓名
  • department_id:部门ID
  • department_name:部门名称
  • servicer_status:热线坐席状态
  • servicer_status_name:热线坐席名称
  • status_start_time:状态开始时间
  • assign_status:分配状态
  • rest_type:小休类型

示例

请求示例

http(s)://aiccs.aliyuncs.com/?Action=GetAgentBasisStatus
&InstanceId=ccc_xp_pre-cn-***
&StartDate=1615083365000
&EndDate=1617761765000
&PageSize=20
&CurrentPage=1
&AgentIds=["2256****","2257****"]
&DepIds=["6083****","6084****"]
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetAgentBasisStatusResponse>
    <RequestId>EE338D98-9BD3-4413-B165</RequestId>
    <Message>OK</Message>
    <Code>200</Code>
    <Success>true</Success>
    <Data>
        <PageNum>1</PageNum>
        <PageSize>2000</PageSize>
        <TotalNum>4</TotalNum>
        <Rows>
            <tenantid>905</tenantid>
            <servicerid>732037</servicerid>
            <tenantname>测试</tenantname>
            <recordgmtmodified>2021-04-01 11:36:50</recordgmtmodified>
            <pkid>73203720210401</pkid>
            <statusstarttime>2021-04-01 11:36:50</statusstarttime>
            <recordgmtcreate>2021-04-01 10:06:24</recordgmtcreate>
            <departmentid>945044</departmentid>
            <departmentname>测试技能组</departmentname>
            <lstlogintime>2021-04-01 10:06:24</lstlogintime>
            <dateid>20210401</dateid>
            <triggerreason>3</triggerreason>
            <servicerstatus>D</servicerstatus>
            <assignstatus>1</assignstatus>
            <servicerrealname>xx</servicerrealname>
            <servicerstatusname>签出</servicerstatusname>
            <fstlogintime>2021-04-01 10:06:24</fstlogintime>
            <servicername>xx</servicername>
        </Rows>
        <Rows>
            <tenantid>905</tenantid>
            <servicerid>674154</servicerid>
            <tenantname>测试</tenantname>
            <recordgmtmodified>2021-04-01 10:02:44</recordgmtmodified>
            <pkid>67415420210401</pkid>
            <statusstarttime>2021-04-01 10:02:44</statusstarttime>
            <recordgmtcreate>2021-04-01 09:41:08</recordgmtcreate>
            <departmentid>10</departmentid>
            <departmentname>default</departmentname>
            <lstlogintime>2021-04-01 09:41:08</lstlogintime>
            <dateid>20210401</dateid>
            <triggerreason>3</triggerreason>
            <servicerstatus>D</servicerstatus>
            <assignstatus>1</assignstatus>
            <servicerrealname>xx</servicerrealname>
            <servicerstatusname>签出</servicerstatusname>
            <fstlogintime>2021-04-01 09:24:39</fstlogintime>
            <servicername>xx</servicername>
        </Rows>
    </Data>
</GetAgentBasisStatusResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "EE338D98-9BD3-4413-B165",
  "Message" : "OK",
  "Code" : "200",
  "Success" : "true",
  "Data" : {
    "PageNum" : 1,
    "PageSize" : 2000,
    "TotalNum" : 4,
    "Rows" : [ {
      "tenantid" : "905",
      "servicerid" : "732037",
      "tenantname" : "测试",
      "recordgmtmodified" : "2021-04-01 11:36:50",
      "pkid" : "73203720210401",
      "statusstarttime" : "2021-04-01 11:36:50",
      "recordgmtcreate" : "2021-04-01 10:06:24",
      "departmentid" : "945044",
      "departmentname" : "测试技能组",
      "lstlogintime" : "2021-04-01 10:06:24",
      "dateid" : "20210401",
      "triggerreason" : "3",
      "servicerstatus" : "D",
      "assignstatus" : "1",
      "servicerrealname" : "xx",
      "servicerstatusname" : "签出",
      "fstlogintime" : "2021-04-01 10:06:24",
      "servicername" : "xx"
    }, {
      "tenantid" : "905",
      "servicerid" : "674154",
      "tenantname" : "测试",
      "recordgmtmodified" : "2021-04-01 10:02:44",
      "pkid" : "67415420210401",
      "statusstarttime" : "2021-04-01 10:02:44",
      "recordgmtcreate" : "2021-04-01 09:41:08",
      "departmentid" : "10",
      "departmentname" : "default",
      "lstlogintime" : "2021-04-01 09:41:08",
      "dateid" : "20210401",
      "triggerreason" : "3",
      "servicerstatus" : "D",
      "assignstatus" : "1",
      "servicerrealname" : "xx",
      "servicerstatusname" : "签出",
      "fstlogintime" : "2021-04-01 09:24:39",
      "servicername" : "xx"
    } ]
  }
}

错误码

HttpCode 错误码 错误信息 描述
500 SystemError A system error occurred. Please contact the administrator. 系统错误,请联系管理员!

访问错误中心查看更多错误码。