# 预测式外呼 - 预测外呼任务详情

#### 接口说明

**获取预测式外呼任务呼叫详情数据**

#### 请求参数

| 参数名 | 类型 | 是否必须 | 说明 |
| --- | --- | --- | --- |
| service | string | 是 | App.Sip\_Yccall.TaskInfo |
| token | string | 是 | 通过授权接口获取的token |
| taskid | string | 是 | 任务ID |
| currentpage | int | 否 | 当前页 |
| itemsperpage | int | 否 | 每页显示 |
#### 接口请求示例（PHP）

    <?php
        $apiUrl = 'http://127.0.0.1:8080';
        $postFields = [
            'service'   => 'App.Sip_Yccall.TaskInfo',
            'token'     => 'ABCDEFG',
            'taskid'     => 'taskid'
        ];
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $apiUrl);
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $postFields);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        $response = curl_exec($curl);
        $curlError = curl_error($curl);
        curl_close($curl);
        var_dump($response);
    ?>
    

#### 返回数据结构示例

    {
        "ret": 200,
        "data": {
            "status": 0,
            "desc": "获取成功",
            "result": {
            "totalitems": 1,
            "currentpage": 1,
            "itemsperpage": 10,
            "result": [
            	{
                    "taskid": "20250110232019949748",
                    "telphone": "18112345678",
                    "userid": "",
                    "memberid": "",
                    "chengshudu": "",
                    "customuuid": "",
                    "status": 1036,      # 是否呼叫  1036 已呼叫  1035 未呼叫
                    "extnumber": null,  # 坐席号
                    "answered": null,   # 否接通，1 表示接通，0 表示未接通
                    "answertype": null, # 接通类型 caller 坐席未接，callee 被叫未接通，connected 呼叫接听
                    "calltime": null,   # 呼叫时间
                    "duration": 0,   # 等待时间
                    "billsec": 0,      # 通话时间
                    "createtime": "2025-01-10 22:20:20",
					"mark": "sssssssss"  //备注
                }
        ],
        },
            "reqtime": 1581496504,
            "rsptime": 1581496504
        },
        "msg": ""
    }
    

#### 返回参数说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| result | object | 返回结果 |