呼叫系统API


项目管理

<p><strong>简要描述:</strong></p> <ul> <li>条件查询接口</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/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>enable</td> <td>否</td> <td>int</td> <td></td> <td>项目状态 1:启用,2:禁用</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;acd&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;admin_id&amp;quot;: 1, &amp;quot;crm_id&amp;quot;: 1, &amp;quot;crm_timeout&amp;quot;: 2, &amp;quot;enable&amp;quot;: true, &amp;quot;expand&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;gateway_id&amp;quot;: 1, &amp;quot;greeting_digits&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;greeting_file&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;id&amp;quot;: 1, &amp;quot;msg&amp;quot;: -1, &amp;quot;msg_content&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;test&amp;quot;, &amp;quot;originate_timeout&amp;quot;: 60, &amp;quot;outbound_type&amp;quot;: 3, &amp;quot;parameter&amp;quot;: 100.0000, &amp;quot;play_extno&amp;quot;: false, &amp;quot;prompt_recording&amp;quot;: false, &amp;quot;waiting&amp;quot;: &amp;quot;{timeout=30000}waiting.wav&amp;quot;, &amp;quot;waiting_file&amp;quot;: &amp;quot;waiting.wav&amp;quot;, &amp;quot;waiting_timeout&amp;quot;: 30, &amp;quot;agents&amp;quot;: [], &amp;quot;gatewayName&amp;quot;: &amp;quot;10086&amp;quot;, &amp;quot;crmName&amp;quot;: &amp;quot;test&amp;quot; }], &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>admin_id</td> <td>int</td> <td>用户编号</td> </tr> <tr> <td>crm_id</td> <td>int</td> <td>crm编号</td> </tr> <tr> <td>crmName</td> <td>string</td> <td>crm名称</td> </tr> <tr> <td>crm_timeout</td> <td>int</td> <td>CRM超时(秒)</td> </tr> <tr> <td>enable</td> <td>boolean</td> <td>是否启用</td> </tr> <tr> <td>gateway_id</td> <td>int</td> <td>中继编号</td> </tr> <tr> <td>gatewayName</td> <td>string</td> <td>中继名称</td> </tr> <tr> <td>parameter</td> <td>string</td> <td>参数</td> </tr> <tr> <td>outbound_type</td> <td>string</td> <td>外呼类型,1 预测;3 自动;4 点击;2 比例外呼</td> </tr> <tr> <td>acd</td> <td>string</td> <td>ACD</td> </tr> <tr> <td>greeting_digits</td> <td>string</td> <td>功能键</td> </tr> <tr> <td>greeting_file</td> <td>string</td> <td>欢迎语</td> </tr> <tr> <td>msg</td> <td>string</td> <td>短信,-1 不发送;0 全部发送;&gt;0 接听多少秒发送</td> </tr> <tr> <td>msg_content</td> <td>string</td> <td>短信内容</td> </tr> <tr> <td>originate_timeout</td> <td>int</td> <td>呼叫超时(秒)</td> </tr> <tr> <td>play_extno</td> <td>boolean</td> <td>播报工号,true,false</td> </tr> <tr> <td>prompt_recording</td> <td>boolean</td> <td>提示录音,true,false</td> </tr> <tr> <td>waiting</td> <td>string</td> <td>排队规则</td> </tr> <tr> <td>waiting_file</td> <td>string</td> <td>排队语音</td> </tr> <tr> <td>agents</td> <td>string</td> <td>坐席</td> </tr> </tbody> </table> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 增加接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/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>name</td> <td>是</td> <td>string</td> <td></td> <td>项目名称</td> </tr> <tr> <td>greeting_file</td> <td>是</td> <td>String</td> <td></td> <td>欢迎语</td> </tr> <tr> <td>greeting_digits</td> <td>是</td> <td>String</td> <td></td> <td>功能键</td> </tr> <tr> <td>outbound_type</td> <td>是</td> <td>string</td> <td></td> <td>外呼类型 , 1 预测;3 自动;4 点击;2 比例外呼</td> </tr> <tr> <td>parameter</td> <td>是</td> <td>string</td> <td></td> <td>参数</td> </tr> <tr> <td>crm_id</td> <td>是</td> <td>int</td> <td></td> <td>crm编号</td> </tr> <tr> <td>crm_timeout</td> <td>是</td> <td>int</td> <td></td> <td>CRM超时(秒)</td> </tr> <tr> <td>gateway_id</td> <td>是</td> <td>int</td> <td></td> <td>外呼号码(中继编号)</td> </tr> <tr> <td>agent_id</td> <td>是</td> <td>string</td> <td>例如:1,2,3</td> <td>坐席</td> </tr> <tr> <td>waiting_timeout</td> <td>是</td> <td>int</td> <td></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 :增加的项目id; }</code></pre> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 修改接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/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>name</td> <td>是</td> <td>string</td> <td></td> <td>项目名称</td> </tr> <tr> <td>greeting_file</td> <td>是</td> <td>String</td> <td></td> <td>欢迎语</td> </tr> <tr> <td>greeting_digits</td> <td>是</td> <td>String</td> <td></td> <td>功能键</td> </tr> <tr> <td>outbound_type</td> <td>是</td> <td>string</td> <td></td> <td>外呼类型 , 1 预测;3 自动;4 点击;2 比例外呼</td> </tr> <tr> <td>parameter</td> <td>是</td> <td>string</td> <td></td> <td>参数</td> </tr> <tr> <td>crm_id</td> <td>是</td> <td>int</td> <td></td> <td>crm编号</td> </tr> <tr> <td>crm_timeout</td> <td>是</td> <td>int</td> <td></td> <td>CRM超时(秒)</td> </tr> <tr> <td>gateway_id</td> <td>是</td> <td>int</td> <td></td> <td>外呼号码(中继编号)</td> </tr> <tr> <td>agent_id</td> <td>是</td> <td>string</td> <td>例如:1,2,3</td> <td>坐席</td> </tr> <tr> <td>waiting_timeout</td> <td>是</td> <td>int</td> <td></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/enable</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>ids</td> <td>是</td> <td>string</td> <td>{1,2,3}</td> <td>项目编号</td> </tr> <tr> <td>status</td> <td>是</td> <td>boolean</td> <td></td> <td>状态 ,启用:true,禁用:false</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/agent/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;key&quot;: 1, &quot;value&quot;: &quot;1001(1001)-default&quot; }, { &quot;key&quot;: 2, &quot;value&quot;: &quot;1002(1002)-default&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;, &quot;passwd&quot;: null, &quot;realm&quot;: null, &quot;register&quot;: null, &quot;caller_id_in_from&quot;: false, &quot;cycle&quot;: 0, &quot;rate&quot;: null, &quot;codec&quot;: null, &quot;dtmf_type&quot;: null, &quot;admin_id&quot;: 0 }] }</p> </li> <li> <ul> <li>*</li> </ul> </li> </ul> <h3><strong>简要描述:</strong></h3> <h1>-crm下拉列表接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/crm/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;, &quot;stamp&quot;: &quot;2021-08-26 19:44:40&quot;, &quot;issue&quot;: true, &quot;inspections&quot;: &quot;[\&quot;未质检\&quot;, \&quot;质检合格\&quot;, \&quot;质检不合格\&quot;]&quot;, &quot;admin_id&quot;: 1, &quot;status&quot;: 1 }] }</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/audioFile/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;: 3, &quot;name&quot;: &quot;核桃编程18秒前置&quot;, &quot;file_name&quot;: &quot;10_1628500125642.wav&quot;, //添加,修改时,greeting_file参数值 &quot;description&quot;: &quot;&quot;, &quot;stamp&quot;: &quot;2021-08-09 17:08:45&quot;, &quot;status&quot;: 1, &quot;admin_id&quot;: 10 }] }</p> </li> </ul> <h3><strong>简要描述:</strong></h3> <h1>-验证项目名称是否可用,添加时</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/exist</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>name</td> <td>是</td> <td>string</td> <td></td> <td>名称</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <p>复制 <code>{ &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: true 或 false }</code></p>

页面列表

ITEM_HTML