呼叫接口

呼叫接口


预测重呼任务接口

<h3>接口说明:</h3> <h5>设置预测试外呼任务的状态。</h5> <h3>请求参数</h3> <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.taskCall</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>answertype</td> <td>string</td> <td>否</td> <td>all 全部, caller 坐席未接,callee 客户未接,connected 呼叫接听 默认值all</td> </tr> <tr> <td>status</td> <td>int</td> <td>否</td> <td>是否自动开启 0:不开启 1:开启 默认值1</td> </tr> <tr> <td>scheduledtime</td> <td>date</td> <td>否</td> <td>任务运行计划时间,任务开启状态下有效 格式:yyyy-mm-dd hh:mm:ss</td> </tr> <tr> <td>pausedtime</td> <td>date</td> <td>否</td> <td>任务运行截止时间,任务开启状态下有效 格式:yyyy-mm-dd hh:mm:ss</td> </tr> </tbody> </table> <h3>接口请求示例(PHP)</h3> <pre><code>&amp;lt;?php $apiUrl = &amp;#039;http://127.0.0.1:8080&amp;#039;; $postFields = [ &amp;#039;service&amp;#039; =&amp;gt; &amp;#039;App.Sip_Yccall.TaskSet&amp;#039;, &amp;#039;token&amp;#039; =&amp;gt; &amp;#039;ABCDEFG&amp;#039;, &amp;#039;taskid&amp;#039; =&amp;gt; &amp;#039;ABCDEFG&amp;#039;, &amp;#039;taskstatus&amp;#039; =&amp;gt; 1, ]; $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); ?&amp;gt;</code></pre> <h3>返回数据结构示例</h3> <pre><code>{ &amp;quot;ret&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;status&amp;quot;: 0, &amp;quot;desc&amp;quot;: &amp;quot;设置成功&amp;quot;, &amp;quot;reqtime&amp;quot;: 1581496800, &amp;quot;rsptime&amp;quot;: 1581496800 }, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <h3>返回参数说明</h3> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>desc</td> <td>string</td> <td>返回描述</td> </tr> </tbody> </table>

页面列表

ITEM_HTML