预测外呼任务详情
<h4>接口说明:</h4>
<h5>创建一个预测试外呼任务。注:单个任务的号码数不要超过10000个,如果需要再增加号码,请通过追加接口提交。</h5>
<h4>请求参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>是否必须</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>service</td>
<td>string</td>
<td>是</td>
<td>App.Sip_Yccall.TaskInfo</td>
</tr>
<tr>
<td>token</td>
<td>string</td>
<td>是</td>
<td>通过授权接口获取的token</td>
</tr>
<tr>
<td>taskid</td>
<td>string</td>
<td>是</td>
<td>任务ID</td>
</tr>
<tr>
<td>currentpage</td>
<td>int</td>
<td>否</td>
<td>当前页</td>
</tr>
<tr>
<td>itemsperpage</td>
<td>int</td>
<td>否</td>
<td>每页显示</td>
</tr>
</tbody>
</table>
<h4>接口请求示例(PHP)</h4>
<pre><code>&lt;?php
$apiUrl = &#039;http://127.0.0.1:8080&#039;;
$postFields = [
&#039;service&#039; =&gt; &#039;App.Sip_Yccall.TaskList&#039;,
&#039;token&#039; =&gt; &#039;ABCDEFG&#039;,
&#039;taskid&#039; =&gt; &#039;taskid&#039;
];
$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);
?&gt;</code></pre>
<h4>返回数据结构示例</h4>
<pre><code>{
&quot;ret&quot;: 200,
&quot;data&quot;: {
&quot;status&quot;: 0,
&quot;desc&quot;: &quot;获取成功&quot;,
&quot;result&quot;: {
&quot;totalitems&quot;: 1,
&quot;currentpage&quot;: 1,
&quot;itemsperpage&quot;: 10,
&quot;result&quot;: [
{
&quot;taskid&quot;: &quot;20250110232019949748&quot;,
&quot;telphone&quot;: &quot;18112345678&quot;,
&quot;userid&quot;: &quot;&quot;,
&quot;memberid&quot;: &quot;&quot;,
&quot;chengshudu&quot;: &quot;&quot;,
&quot;customuuid&quot;: &quot;&quot;,
&quot;status&quot;: 1036, # 是否呼叫 1036 已呼叫 1035 未呼叫
&quot;extnumber&quot;: null, # 坐席号
&quot;answered&quot;: null, # 否接通,1 表示接通,0 表示未接通
&quot;answertype&quot;: null, # 接通类型 caller 坐席未接,callee 被叫未接通,connected 呼叫接听
&quot;calltime&quot;: null, # 呼叫时间
&quot;duration&quot;: 0, # 等待时间
&quot;billsec&quot;: 0, # 通话时间
&quot;createtime&quot;: &quot;2025-01-10 22:20:20&quot;,
&quot;mark&quot;: &quot;sssssssss&quot; //备注
}
],
},
&quot;reqtime&quot;: 1581496504,
&quot;rsptime&quot;: 1581496504
},
&quot;msg&quot;: &quot;&quot;
}</code></pre>
<h4>返回参数说明</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>result</td>
<td>object</td>
<td>返回结果</td>
</tr>
</tbody>
</table>