调用RequestLoginInfo获取坐席工作台的登陆信息。

调试

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

请求参数

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

系统规定参数。取值:RequestLoginInfo

InstanceId String 9cfad875-6260-4a53-ab6e-b13e3fb3****

呼叫中心实例ID

UserId String 674a5953-21d5-4ee9-9b42-eb8813d6****

用户唯一标识。

注意这里是RAM子账号在呼叫中心实例的唯一标识并非RamId,即UUID。

返回数据

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

响应码

HttpStatusCode Integer 200

HTTP状态码

LoginInfo Struct

获取到的Region信息

AgentServerUrl String as.ccc.aliyuncs.com:80

Agent Server集群VIP地址

DisplayName String 小李

座席展示名,来源于IMS目录服务

Extension String 8032****

分机号码

PhoneNumber String 1766666****

手机号码

Region String aliyunccc

区域信息

Roles Array of Role

用户的角色列表

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

角色所归属的呼叫中心实例

RoleDescription String 坐席

角色描述

RoleId String 4c2e158e-ddd9-464a-a3fc-338eca10277c

角色ID,系统自动生成的唯一标示符

RoleName String AGENT

角色名称

SignData String {"tenantId": "acc2631", "serviceId":"24935391987465****", "dn":"8032****", "source":"aliyun", "timestamp":1531454246, "expireTime":1531456046}

签名数据

Signature String B9ZSTwDHELlAwwYCdfnxzHHYK0K+SJbWwSwPM4DzJaosD57nNMfHKLjpeCFjolh/R0WAFT/p1s0xijGbEvm5xLofZgCfBZFypIMuMQOerNfDWSfa390wRJBu9E/apUGX3k6OQTmxMz6cozcaiNgScwFSbAViT2dT9Z5xvU5PqKY=

签名信息

TenantId String acc2631

租户ID

UserName String 4935391987465****@hotCallCenter2

座席登陆用户名,来源于IMS目录服务

WebRtcUrl String sip.ccc.aliyuncs.com:9443

WebRTC2SIP服务器地址

Message String

响应信息

RequestId String 9D902FCA-FBBA-4888-9F85-4900EE85DA3D

请求ID

Success Boolean true

是否成功

示例

请求示例

http(s)://[Endpoint]/?Action=RequestLoginInfo
&InstanceId=9cfad875-6260-4a53-ab6e-b13e3fb3****
&<公共请求参数>

正常返回示例

XML格式

<Message>无</Message>
<RequestId>9D902FCA-FBBA-4888-9F85-4900EE85DA3D</RequestId>
<LoginInfo>
    <Extension>8032****</Extension>
    <AgentServerUrl>as.ccc.aliyuncs.com:80</AgentServerUrl>
    <TenantId>acc2631</TenantId>
    <UserName>4935391987465****@hotCallCenter2</UserName>
    <SignData>{"tenantId": "acc2631", "serviceId":"24935391987465****", "dn":"8032****", "source":"aliyun", "timestamp":1531454246, "expireTime":1531456046}</SignData>
    <Signature>B9ZSTwDHELlAwwYCdfnxzHHYK0K+SJbWwSwPM4DzJaosD57nNMfHKLjpeCFjolh/R0WAFT/p1s0xijGbEvm5xLofZgCfBZFypIMuMQOerNfDWSfa390wRJBu9E/apUGX3k6OQTmxMz6cozcaiNgScwFSbAViT2dT9Z5xvU5PqKY=</Signature>
    <DisplayName>小李</DisplayName>
    <Region>aliyunccc</Region>
    <PhoneNumber>1766666****</PhoneNumber>
    <WebRtcUrl>sip.ccc.aliyuncs.com:9443</WebRtcUrl>
    <Roles>
        <Role>
            <RoleName>AGENT</RoleName>
            <InstanceId>9cfad875-6260-4a53-ab6e-b13e3fb31f7d</InstanceId>
            <RoleDescription>坐席</RoleDescription>
            <RoleId>4c2e158e-ddd9-464a-a3fc-338eca10277c</RoleId>
        </Role>
    </Roles>
</LoginInfo>
<HttpStatusCode>200</HttpStatusCode>
<Code>OK</Code>
<Success>true</Success>

JSON格式

{
    "Message": "无",
    "RequestId": "9D902FCA-FBBA-4888-9F85-4900EE85DA3D",
    "LoginInfo": {
        "Extension": "8032****",
        "AgentServerUrl": "as.ccc.aliyuncs.com:80",
        "TenantId": "acc2631",
        "UserName": "4935391987465****@hotCallCenter2",
        "SignData": "{\"tenantId\": \"acc2631\", \"serviceId\":\"24935391987465****\", \"dn\":\"8032****\", \"source\":\"aliyun\", \"timestamp\":1531454246, \"expireTime\":1531456046}",
        "Signature": "B9ZSTwDHELlAwwYCdfnxzHHYK0K+SJbWwSwPM4DzJaosD57nNMfHKLjpeCFjolh/R0WAFT/p1s0xijGbEvm5xLofZgCfBZFypIMuMQOerNfDWSfa390wRJBu9E/apUGX3k6OQTmxMz6cozcaiNgScwFSbAViT2dT9Z5xvU5PqKY=",
        "DisplayName": "小李",
        "Region": "aliyunccc",
        "PhoneNumber": "1766666****",
        "WebRtcUrl": "sip.ccc.aliyuncs.com:9443",
        "Roles": {
            "Role": {
                "RoleName": "AGENT",
                "InstanceId": "9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
                "RoleDescription": "坐席",
                "RoleId": "4c2e158e-ddd9-464a-a3fc-338eca10277c"
            }
        }
    },
    "HttpStatusCode": 200,
    "Code": "OK",
    "Success": true
}

错误码

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