呼叫系统API


呼入路由

<h3><strong>简要描述:</strong></h3> <h1>- 条件查询接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/inbound/grid</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>gateway_id</td> <td>否</td> <td>int</td> <td></td> <td>中继编号</td> </tr> <tr> <td>name</td> <td>否</td> <td>string</td> <td></td> <td>任务名称</td> </tr> <tr> <td>page</td> <td>是</td> <td>int</td> <td>1</td> <td>起始页</td> </tr> <tr> <td>limit</td> <td>是</td> <td>int</td> <td>10</td> <td>显示条数</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;测试830&amp;quot;, &amp;quot;gateway_id&amp;quot;: 1, &amp;quot;gateway_name&amp;quot;: &amp;quot;10086&amp;quot;, &amp;quot;project_id&amp;quot;: 1, &amp;quot;city_code&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;days&amp;quot;: &amp;quot;[0, 1, 2, 3, 4, 5, 6]&amp;quot;, &amp;quot;start_time&amp;quot;: &amp;quot;00:00:00&amp;quot;, &amp;quot;end_time&amp;quot;: &amp;quot;23:59:59&amp;quot;, &amp;quot;action&amp;quot;: &amp;quot;{\&amp;quot;type\&amp;quot;: \&amp;quot;project\&amp;quot;, \&amp;quot;value\&amp;quot;: \&amp;quot;1\&amp;quot;}&amp;quot;, &amp;quot;admin_id&amp;quot;: 1 }], &amp;quot;count&amp;quot;: 1 }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>int</td> <td>编号</td> </tr> <tr> <td>name</td> <td>string</td> <td>名称</td> </tr> <tr> <td>gateway_id</td> <td>int</td> <td>外呼号码编号</td> </tr> <tr> <td>gateway_name</td> <td>string</td> <td>外呼号码名称</td> </tr> <tr> <td>project_id</td> <td>datetime</td> <td>项目编号</td> </tr> <tr> <td>city_code</td> <td>int</td> <td>区号</td> </tr> <tr> <td>days</td> <td>int</td> <td>工作日</td> </tr> <tr> <td>start_time</td> <td>int</td> <td>工作时间</td> </tr> <tr> <td>end_time</td> <td>int</td> <td>工作时间</td> </tr> <tr> <td>action</td> <td>int</td> <td>路由指向</td> </tr> <tr> <td>admin_id</td> <td>int</td> <td>所属用户编号</td> </tr> </tbody> </table> <h3><strong>简要描述:</strong></h3> <h1>- 新建路由接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/inbound/add</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td></td> <td>项目编号</td> </tr> <tr> <td>name</td> <td>是</td> <td>string</td> <td></td> <td>名称</td> </tr> <tr> <td>gateway_id</td> <td>是</td> <td>int</td> <td></td> <td>呼入号码</td> </tr> <tr> <td>city_code</td> <td>是</td> <td>string</td> <td></td> <td>区号</td> </tr> <tr> <td>days</td> <td>是</td> <td>string</td> <td></td> <td>工作日</td> </tr> <tr> <td>start_time</td> <td>是</td> <td>string</td> <td></td> <td>工作起始时间,时分秒</td> </tr> <tr> <td>end_time</td> <td>是</td> <td>string</td> <td></td> <td>工作结束时间,时分秒</td> </tr> <tr> <td>action</td> <td>是</td> <td>string</td> <td></td> <td>路由指向: {“type”:”project”,”value”:”1”},type值定义:项目时为project,IVR时为ivr,坐席时为agent</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 修改路由接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/inbound/edit</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>是</td> <td>int</td> <td></td> <td>项目编号</td> </tr> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td></td> <td>项目编号</td> </tr> <tr> <td>name</td> <td>是</td> <td>string</td> <td></td> <td>名称</td> </tr> <tr> <td>gateway_id</td> <td>是</td> <td>string</td> <td></td> <td>呼入号码</td> </tr> <tr> <td>city_code</td> <td>是</td> <td>string</td> <td></td> <td>区号</td> </tr> <tr> <td>days</td> <td>是</td> <td>string</td> <td></td> <td>工作日</td> </tr> <tr> <td>start_time</td> <td>是</td> <td>string</td> <td></td> <td>工作起始时间,时分秒</td> </tr> <tr> <td>end_time</td> <td>是</td> <td>string</td> <td></td> <td>工作结束时间,时分秒</td> </tr> <tr> <td>action</td> <td>是</td> <td>string</td> <td></td> <td>路由指向: {“type”:”project”,”value”:”1”},type值定义:项目时为project,IVR时为ivr,坐席时为agent</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 删除接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/inbound/remove</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>ids</td> <td>是</td> <td>string</td> <td>任务编号,多个用逗号分割</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 获取项目接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/list</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> <p>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;id&quot;: 1, //项目编号 &quot;name&quot;: &quot;test&quot;, //项目名称 }] }</p> </li> <li> <ul> <li>*</li> </ul> </li> </ul> <h3><strong>简要描述:</strong></h3> <h1>- 获取呼入号码接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/gateways</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> <p>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;id&quot;: 1, &quot;username&quot;: &quot;10086&quot; }] }</p> </li> <li> <ul> <li>*</li> </ul> </li> </ul> <h3><strong>简要描述:</strong></h3> <h1>- 获取IVR接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/ivr/list</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> <p>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;id&quot;: 1, &quot;username&quot;: &quot;10086&quot; }] }</p> </li> <li> <ul> <li>*</li> </ul> </li> </ul> <h3><strong>简要描述:</strong></h3> <h1>- 获取坐席接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/list</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> </li> </ul> <p>复制 <code>{ &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;key&amp;quot;: 1, &amp;quot;value&amp;quot;: &amp;quot;1001(1001)-default&amp;quot; }, { &amp;quot;key&amp;quot;: 2, &amp;quot;value&amp;quot;: &amp;quot;1002(1002)-default&amp;quot; }] }</code></p>

页面列表

ITEM_HTML