根据手机号获取作业数据

调试

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

请求参数

名称 类型 是否必选 示例值 描述
InstanceId String af81a389-91f0-4157-8d82-720edd02b66a

实例id

JobGroupId String b72425bd-7871-4050-838e-033d80d754b7

实例id

PhoneNumber String 17774847576

手机号

返回数据

名称 类型 示例值 描述
RequestId String 254EB995-DEDF-48A4-9101-9CA5B72FFBCC

请求id

Success Boolean true

是否是成功

Code String OK

接口状态码

Message String Success

接口提示消息

HttpStatusCode Integer 200

http 状态码

Jobs Array

作业数据数组

JobId String b72425bd-7871-4050-838e-033d80d754b7

作业id

GroupId String fce6c599-8ede-40e3-9f78-0928eda7b4e8

作业组id

ScenarioId String ade80092-03d9-4f4d-ad4f-ab8a247d3150

场景id

StrategyId String c8a2b7f2-ad1a-4865-b872-d0080d9802d9

策略id

Priority Integer 5

优先级

SystemPriority Integer 1

系统优先级

Status String Succeeded

作业状态

ReferenceId String d5971d98-7312-4f0e-a918-a17d67133e28

作业第三方系统id

FailureReason String NoAnswer

作业失败原因

Contacts Array

作业的联系人列表

ContactId String db3db762-e421-44c9-9a01-cb423470757c

联系人id

ContactName String 张三

联系人名字

Honorific String 张先生

联系人尊称

Role String *

角色

PhoneNumber String 13581588888

电话号码名字

State String Available

状态

ReferenceId String 2fa6bac3-06da-4315-82ab-72d6fd3a6f34

联系人第三方id

JobId String 72dcd26b-f12d-4c27-b3af-18f6aed5b160

作业id

Extras Array

业务数据列表

Key String djrq

业务参数名字

Value String 2019-08-21 09:49:59.0

业务参数值

Tasks Array

任务列表

TaskId String ff44709e-39a6-43ba-959b-20fcabe3e496

任务id

JobId String b72425bd-7871-4050-838e-033d80d754b7

作业id

ScenarioId String ade80092-03d9-4f4d-ad4f-ab8a247d3150

场景id

ChatbotId String 1234

对话的机器人id

PlanedTime Long 1579068424883

计划执行时间

ActualTime Long 1579068424883

实际执行时间

CallingNumber String 057126883106

主叫号码

CalledNumber String 13512345678

被叫号码

CallId String 1528189846043

呼叫id

Status String Succeeded

状态

Brief String 1

业务结果

Duration Integer 120

持续时间

Conversation Array

任务对话列表

Timestamp Long 1579068424883

时间戳

Speaker String Robot

是谁说的话,Robot 机器人,Contact 联系人

Script String 你好,我是**客服

对话文本

Summary Array

对话过程的摘要

Category String {}

对话摘要类别

SummaryName String score

对话摘要名字

Content String 5

对话摘要内容

Contact Struct

任务联系人

ContactId String db3db762-e421-44c9-9a01-cb423470757c

联系人id

ContactName String 张三

联系人名字

Honorific String 张先生

联系人尊称

Role String *

角色

PhoneNumber String 13512345678

联系人号码

State String Available

状态

ReferenceId String 2fa6bac3-06da-4315-82ab-72d6fd3a6f34

联系人第三方系统的id

JobId String b72425bd-7871-4050-838e-033d80d754b7

作业id

Summary Array

作业的摘要信息

Category String {}

对话摘要类别

SummaryName String score

对话摘要名字

Content String 5

对话摘要内容

CallingNumbers List ["057126883106"]

主叫号码列表

示例

请求示例

http(s)://[Endpoint]/?Action=GetJobByPhoneNumber
&InstanceId=af81a389-91f0-4157-8d82-720edd02b66a
&JobGroupId=b72425bd-7871-4050-838e-033d80d754b7
&PhoneNumber=17774847576
&<公共请求参数>

正常返回示例

XML 格式

<Code>OK</Code>
<HttpStatusCode>200</HttpStatusCode>
<Jobs>
    <Status>Succeeded</Status>
    <ScenarioId>jr-collection-first-scenario</ScenarioId>
    <Tasks>
        <Status>Succeeded</Status>
        <ChatbotId>419</ChatbotId>
        <PlanedTime>1578638554000</PlanedTime>
        <CalledNumber>135********</CalledNumber>
        <ScenarioId>jr-collection-first-scenario</ScenarioId>
        <EndTime>1578638623000</EndTime>
        <ActualTime>1578638570000</ActualTime>
        <CallId>00001051951578638555</CallId>
        <CreateTime>1578638554000</CreateTime>
        <Conversation>
            <Status>DISTINGUISH</Status>
            <Script/>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <ConversationId>2380a728-45c1-45af-853c-fb7669dc512b</ConversationId>
            <Timestamp>1578638570000</Timestamp>
            <Speaker>Contact</Speaker>
        </Conversation>
        <Conversation>
            <Status>DISTINGUISH</Status>
            <Script>您好,***有限公司,请问是王文杰王文杰女士吗</Script>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <ConversationId>2b30bd6f-be21-4330-9d2c-a6fd1c4d0128</ConversationId>
            <Timestamp>1578638571000</Timestamp>
            <Speaker>Robot</Speaker>
        </Conversation>
        <Conversation>
            <Status>DISTINGUISH</Status>
            <Script>是的</Script>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <ConversationId>bde777f0-44a1-4e10-a405-4f8aa3b885a1</ConversationId>
            <Timestamp>1578638584000</Timestamp>
            <Speaker>Contact</Speaker>
        </Conversation>
        <ContactId>8704619d-61ec-4344-a9f8-06654b795ecf</ContactId>
        <Brief>1</Brief>
        <CallingNumber>1003</CallingNumber>
        <Contact>
            <Role>1</Role>
            <Honorific>王文杰女士</Honorific>
            <ReferenceId>abc</ReferenceId>
            <PhoneNumber>135********</PhoneNumber>
            <Round>0</Round>
            <ContactId>8704619d-61ec-4344-a9f8-06654b795ecf</ContactId>
            <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
            <ContactName>王文杰</ContactName>
        </Contact>
        <LastUpdated>1578638623000</LastUpdated>
        <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
        <JobId>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobId>
    </Tasks>
    <Priority>5</Priority>
    <CreateTime>1578638543000</CreateTime>
    <StrategyId>jr-collection-oneday-strategy</StrategyId>
    <Extras>
        <Value>1870.75</Value>
        <Key>capital</Key>
    </Extras>
    <Extras>
        <Value>奥迪A4L</Value>
        <Key>carBrand</Key>
    </Extras>
    <GroupId>finance-collection-first-group</GroupId>
    <Contacts>
        <Role>1</Role>
        <Honorific>王文杰王文杰女士</Honorific>
        <ReferenceId>abc</ReferenceId>
        <PhoneNumber>135********</PhoneNumber>
        <Round>0</Round>
        <Id>8704619d-61ec-4344-a9f8-06654b795ecf</Id>
        <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
        <Name>王文杰王文杰</Name>
    </Contacts>
    <SystemPriority>1</SystemPriority>
    <Summary>
        <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
        <Content>yes</Content>
        <SummaryId>11a82ea0-ca18-4c66-8fb2-fa88cbd84784</SummaryId>
        <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
        <SummaryName>Connected</SummaryName>
    </Summary>
    <Summary>
        <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
        <Content>yes</Content>
        <SummaryId>b0a4c6b3-bfa7-488e-b77a-394a52932e0d</SummaryId>
        <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
        <SummaryName>Connected</SummaryName>
    </Summary>
    <JobId>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobId>
    <CallingNumbers>1003</CallingNumbers>
</Jobs>
<RequestId>254EB995-DEDF-48A4-9101-9CA5B72FFBCC</RequestId>
<Success>true</Success>

JSON 格式

{
    "Code": "OK",
    "HttpStatusCode": 200,
    "Jobs": [
         {
        "Status":"Succeeded",
        "ScenarioId":"jr-collection-first-scenario",
        "Tasks":[
            {
                "Status":"Succeeded",
                "ChatbotId":"419",
                "PlanedTime":1578638554000,
                "CalledNumber":"135********",
                "ScenarioId":"jr-collection-first-scenario",
                "EndTime":1578638623000,
                "ActualTime":1578638570000,
                "CallId":"00001051951578638555",
                "CreateTime":1578638554000,
                "Summaries":[

                ],
                "Conversation":[
                    {
                        "Status":"DISTINGUISH",
                        "Script":"",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"2380a728-45c1-45af-853c-fb7669dc512b",
                        "Timestamp":1578638570000,
                        "Speaker":"Contact"
                    },
                    {
                        "Status":"DISTINGUISH",
                        "Script":"您好,***有限公司,请问是王文杰王文杰女士吗",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"2b30bd6f-be21-4330-9d2c-a6fd1c4d0128",
                        "Timestamp":1578638571000,
                        "Speaker":"Robot"
                    },
                    {
                        "Status":"DISTINGUISH",
                        "Script":"是的",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"bde777f0-44a1-4e10-a405-4f8aa3b885a1",
                        "Timestamp":1578638584000,
                        "Speaker":"Contact"
                    }
                ],
                "ContactId":"8704619d-61ec-4344-a9f8-06654b795ecf",
                "Brief":"1",
                "CallingNumber":"1003",
                "Contact":{
                    "Role":"1",
                    "Honorific":"王文杰女士",
                    "ReferenceId":"abc",
                    "PhoneNumber":"135********",
                    "Round":0,
                    "ContactId":"8704619d-61ec-4344-a9f8-06654b795ecf",
                    "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                    "ContactName":"王文杰"
                },
                "LastUpdated":1578638623000,
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "JobId":"177fbde7-dafa-47b6-b996-6a96d11b44ce"
            }
        ],
        "Priority":5,
        "CreateTime":1578638543000,
        "StrategyId":"jr-collection-oneday-strategy",
        "Extras":[
            {
                "Value":"1870.75",
                "Key":"capital"
            },
            {
                "Value":"奥迪A4L",
                "Key":"carBrand"
            }
        ],
        "GroupId":"finance-collection-first-group",
        "Contacts":[
            {
                "Role":"1",
                "Honorific":"王文杰王文杰女士",
                "ReferenceId":"abc",
                "PhoneNumber":"135********",
                "Round":0,
                "Id":"8704619d-61ec-4344-a9f8-06654b795ecf",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "Name":"王文杰王文杰"
            }
        ],
        "SystemPriority":1,
        "Summary":[
            {
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "Content":"yes",
                "SummaryId":"11a82ea0-ca18-4c66-8fb2-fa88cbd84784",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "SummaryName":"Connected"
            },
            {
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "Content":"yes",
                "SummaryId":"b0a4c6b3-bfa7-488e-b77a-394a52932e0d",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "SummaryName":"Connected"
            }
        ],
        "JobId":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
        "CallingNumbers":[
            "1003"
        ]
    }
    ],
    "RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
    "Success": true
}

错误码

HttpCode 错误码 错误信息 描述
500 InternalError An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. 内部错误。建议重试,如果多次重试报错请提交工单。
404 NotExist.Instance The specified Instance does not exist. 指定的实例不存在。
404 NotExist.JobGroup The specified JobGroup does not exist. 指定的任务组不存在。

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