调用ListRealTimeAgent获取呼叫中心实例中的所有可转接的坐席,其中可转接是指坐席处于空闲状态或者坐席存有个人手机号。

调试

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

请求参数

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

系统规定参数。取值:ListRealTimeAgent

InstanceId String 9cfad875-6260-4a53-ab6e-b13e3fb31f7d

待获取用户的呼叫中心实例ID

AccessKeyId String xxx

您的AccessKey ID

返回数据

名称 类型 示例值 描述
Code String OK

响应码

Data

获取到的呼叫中心实例中的用户列表

User

获取到的呼叫中心实例中的用户列表

DisplayName String 模板导入坐席

坐席展示名

Dn String 80315299

坐席分机号

Phone String 18801341452

坐席手机号

RamId String 215771024822688680

坐席RAM子账号

SkillLevels

用户所归属的技能组及相应等级,一个用户可以不属于任何技能组。

SkillLevel

用户所归属的技能组及相应等级,一个用户可以不属于任何技能组。

Level Integer 5

技能级别

Skill

技能

InstanceId String 9cfad875-6260-4a53-ab6e-b13e3fb31f7d

技能组所归属的呼叫中心实例。

SkillGroupDescription String 默认技能组

技能组简单描述。

SkillGroupId String 0ee27b3b-6765-499a-a741-61b16a901e51

技能组唯一ID,系统自动生成的唯一标示符。

SkillGroupName String Default

技能组名字,需要在所归属的呼叫中心实例中唯一。

SkillLevelId String 101271

技能级别唯一ID,系统自动生成的唯一标示符。

State String 3

坐席状态

StateDesc String 未上线

坐席状态描述

HttpStatusCode Integer 200

HTTP状态码

Message String

响应信息

RequestId String 51DE4272-1711-4FF3-805F-7FBD2251AA0D

请求ID

Success Boolean true

是否成功

示例

请求示例


http(s)://ccc.cn-shanghai.aliyuncs.com/?Action=ListRealTimeAgent
&InstanceId=9cfad875-6260-4a53-ab6e-b13e3fb31f7d
&<公共请求参数>

正常返回示例

XML 格式

<ListRealTimeAgentResponse>
      <HttpStatusCode>200</HttpStatusCode>
      <Data>
            <User>
                  <Dn>80315299</Dn>
                  <Phone>18801341452</Phone>
                  <DisplayName>模板导入坐席</DisplayName>
                  <RamId>215771024822688680</RamId>
                  <SkillLevels>
                        <SkillLevel>
                              <SkillLevelId>116793</SkillLevelId>
                              <Skill>
                                    <SkillGroupDescription></SkillGroupDescription>
                                    <InstanceId>9cfad875-6260-4a53-ab6e-b13e3fb31f7d</InstanceId>
                                    <SkillGroupName>闫乐技能组</SkillGroupName>
                                    <SkillGroupId>528433ab-11eb-4279-99dc-3aee89e086f0</SkillGroupId>
                              </Skill>
                              <Level>5</Level>
                        </SkillLevel>
                  </SkillLevels>
                  <StateDesc>未上线</StateDesc>
            </User>
            <User>
                  <Dn>80315524</Dn>
                  <Phone>18801341452</Phone>
                  <DisplayName>模板导入坐席</DisplayName>
                  <RamId>205408124822685486</RamId>
                  <SkillLevels>
                        <SkillLevel>
                              <SkillLevelId>116722</SkillLevelId>
                              <Skill>
                                    <SkillGroupDescription>默认技能组</SkillGroupDescription>
                                    <InstanceId>9cfad875-6260-4a53-ab6e-b13e3fb31f7d</InstanceId>
                                    <SkillGroupName>Default</SkillGroupName>
                                    <SkillGroupId>0ee27b3b-6765-499a-a741-61b16a901e51</SkillGroupId>
                              </Skill>
                              <Level>5</Level>
                        </SkillLevel>
                  </SkillLevels>
                  <StateDesc>未上线</StateDesc>
            </User>
            <User>
                  <Dn>80320550</Dn>
                  <Phone></Phone>
                  <State>3</State>
                  <DisplayName>cloudcallcenter</DisplayName>
                  <RamId>1059803544828509</RamId>
                  <SkillLevels>
                        <SkillLevel>
                              <SkillLevelId>101271</SkillLevelId>
                              <Skill>
                                    <SkillGroupDescription>默认技能组</SkillGroupDescription>
                                    <InstanceId>9cfad875-6260-4a53-ab6e-b13e3fb31f7d</InstanceId>
                                    <SkillGroupName>Default</SkillGroupName>
                                    <SkillGroupId>0ee27b3b-6765-499a-a741-61b16a901e51</SkillGroupId>
                              </Skill>
                              <Level>5</Level>
                        </SkillLevel>
                        <SkillLevel>
                              <SkillLevelId>114479</SkillLevelId>
                              <Skill>
                                    <SkillGroupDescription>描述</SkillGroupDescription>
                                    <InstanceId>9cfad875-6260-4a53-ab6e-b13e3fb31f7d</InstanceId>
                                    <SkillGroupName>韩国芳技能组</SkillGroupName>
                                    <SkillGroupId>a053e6d5-16ee-4283-9c81-631b78ae08a2</SkillGroupId>
                              </Skill>
                              <Level>5</Level>
                        </SkillLevel>
                        <SkillLevel>
                              <SkillLevelId>114163</SkillLevelId>
                              <Skill>
                                    <SkillGroupDescription></SkillGroupDescription>
                                    <InstanceId>9cfad875-6260-4a53-ab6e-b13e3fb31f7d</InstanceId>
                                    <SkillGroupName>卫超技能组</SkillGroupName>
                                    <SkillGroupId>bb009681-b660-49fa-8ae3-3b84899f46b0</SkillGroupId>
                              </Skill>
                              <Level>5</Level>
                        </SkillLevel>
                  </SkillLevels>
                  <StateDesc>空闲</StateDesc>
            </User>
      </Data>
      <RequestId>51DE4272-1711-4FF3-805F-7FBD2251AA0D</RequestId>
      <Success>true</Success>
      <Code>OK</Code>
</ListRealTimeAgentResponse>

JSON 格式

{
	"Data":{
		"User":[
			{
				"Dn":"80315299",
				"Phone":"18801341452",
				"DisplayName":"模板导入坐席",
				"RamId":"215771024822688680",
				"StateDesc":"未上线",
				"SkillLevels":{
					"SkillLevel":[
						{
							"SkillLevelId":"116793",
							"Skill":{
								"SkillGroupDescription":"",
								"InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
								"SkillGroupName":"闫乐技能组",
								"SkillGroupId":"528433ab-11eb-4279-99dc-3aee89e086f0"
							},
							"Level":5
						}
					]
				}
			},
			{
				"Dn":"80315524",
				"Phone":"18801341452",
				"DisplayName":"模板导入坐席",
				"RamId":"205408124822685486",
				"StateDesc":"未上线",
				"SkillLevels":{
					"SkillLevel":[
						{
							"SkillLevelId":"116722",
							"Skill":{
								"SkillGroupDescription":"默认技能组",
								"InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
								"SkillGroupName":"Default",
								"SkillGroupId":"0ee27b3b-6765-499a-a741-61b16a901e51"
							},
							"Level":5
						}
					]
				}
			},
			{
				"Dn":"80320550",
				"Phone":"",
				"State":"3",
				"DisplayName":"cloudcallcenter",
				"RamId":"1059803544828509",
				"StateDesc":"空闲",
				"SkillLevels":{
					"SkillLevel":[
						{
							"SkillLevelId":"101271",
							"Skill":{
								"SkillGroupDescription":"默认技能组",
								"InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
								"SkillGroupName":"Default",
								"SkillGroupId":"0ee27b3b-6765-499a-a741-61b16a901e51"
							},
							"Level":5
						},
						{
							"SkillLevelId":"114479",
							"Skill":{
								"SkillGroupDescription":"描述",
								"InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
								"SkillGroupName":"韩国芳技能组",
								"SkillGroupId":"a053e6d5-16ee-4283-9c81-631b78ae08a2"
							},
							"Level":5
						},
						{
							"SkillLevelId":"114163",
							"Skill":{
								"SkillGroupDescription":"",
								"InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
								"SkillGroupName":"卫超技能组",
								"SkillGroupId":"bb009681-b660-49fa-8ae3-3b84899f46b0"
							},
							"Level":5
						}
					]
				}
			}
		]
	},
	"HttpStatusCode":200,
	"RequestId":"51DE4272-1711-4FF3-805F-7FBD2251AA0D",
	"Success":true,
	"Code":"OK"
}

错误码

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