辅助方法
<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>{
"msg":"success",
"code":0,
"data":[
{
"id":6,
"name":"外呼任务",
"greeting_file":"",
"greeting_digits":"",
"outbound_type":3,
"parameter":1,
"crm_id":1,
"crm_timeout":5,
"waiting_file":"waiting.wav",
"waiting_timeout":30,
"gateway_id":8,
"originate_timeout":60,
"enable":true,
"admin_id":1,
"prompt_recording":false,
"play_extno":false,
"acd":"",
"msg":-1,
"msg_content":"",
"expand":null,
"waiting":"{timeout=30000}waiting.wav"
}</p>
<pre><code>]</code></pre>
<p>}</p>
</li>
<li>
<ul>
<li>*</li>
</ul>
</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_task/getTaskByProject</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>项目id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;msg&quot;:&quot;success&quot;,
&quot;code&quot;:0,
&quot;data&quot;:[
{
&quot;id&quot;:5,
&quot;name&quot;:&quot;外呼任务&quot;,
&quot;project_id&quot;:0,
&quot;create_stamp&quot;:null,
&quot;status&quot;:0
}
]
}</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>{
"msg": "success",
"code": 0,
"data": [{
"key": 1,
"value": "1001(1001)-default"
}, {
"key": 2,
"value": "1002(1002)-default"
}]
}</p>
</li>
</ul>
<h3><strong>简要描述:</strong></h3>
<h1>- 获取 某个项目的CRM字段</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li>` <a href="http://../admin/crm_field/listProjectFields"><a href="http://../admin/crm\_field/listProjectFields">http://../admin/crm\_field/listProjectFields</a></a></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>项目id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<p>复制<code>{ &quot;msg&quot;:&quot;success&quot;, &quot;code&quot;:0, &quot;data&quot;:[ { &quot;id&quot;:1, &quot;issue&quot;:&quot;&quot;, &quot;field_name&quot;:&quot;客户姓名&quot;, &quot;field_type&quot;:1, &quot;input_type&quot;:1, &quot;is_display&quot;:1, &quot;is_edit&quot;:1, &quot;is_empty&quot;:1, &quot;is_search&quot;:0, &quot;jump&quot;:1, &quot;field_json&quot;:null, &quot;status&quot;:1, &quot;crm_id&quot;:1 }, { &quot;id&quot;:2, &quot;issue&quot;:&quot;&quot;, &quot;field_name&quot;:&quot;客户号码&quot;, &quot;field_type&quot;:1, &quot;input_type&quot;:1, &quot;is_display&quot;:1, &quot;is_edit&quot;:0, &quot;is_empty&quot;:1, &quot;is_search&quot;:0, &quot;jump&quot;:2, &quot;field_json&quot;:null, &quot;status&quot;:1, &quot;crm_id&quot;:1 }, { &quot;id&quot;:3, &quot;issue&quot;:&quot;&quot;, &quot;field_name&quot;:&quot;客户状态&quot;, &quot;field_type&quot;:1, &quot;input_type&quot;:2, &quot;is_display&quot;:1, &quot;is_edit&quot;:1, &quot;is_empty&quot;:1, &quot;is_search&quot;:0, &quot;jump&quot;:3, &quot;field_json&quot;:&quot;[{\&quot;name\&quot;: \&quot;失败客户\&quot;, \&quot;next\&quot;: \&quot;\&quot;}, {\&quot;name\&quot;: \&quot;成功客户\&quot;, \&quot;next\&quot;: \&quot;\&quot;}]&quot;, &quot;status&quot;:1, &quot;crm_id&quot;:1 }, { &quot;id&quot;:4, &quot;issue&quot;:&quot;&quot;, &quot;field_name&quot;:&quot;年龄&quot;, &quot;field_type&quot;:1, &quot;input_type&quot;:1, &quot;is_display&quot;:1, &quot;is_edit&quot;:1, &quot;is_empty&quot;:1, &quot;is_search&quot;:0, &quot;jump&quot;:4, &quot;field_json&quot;:&quot;[]&quot;, &quot;status&quot;:1, &quot;crm_id&quot;:1 }, { &quot;id&quot;:5, &quot;issue&quot;:&quot;&quot;, &quot;field_name&quot;:&quot;身高&quot;, &quot;field_type&quot;:1, &quot;input_type&quot;:1, &quot;is_display&quot;:1, &quot;is_edit&quot;:1, &quot;is_empty&quot;:1, &quot;is_search&quot;:0, &quot;jump&quot;:5, &quot;field_json&quot;:&quot;[]&quot;, &quot;status&quot;:1, &quot;crm_id&quot;:1 }, { &quot;id&quot;:6, &quot;issue&quot;:&quot;&quot;, &quot;field_name&quot;:&quot;体重&quot;, &quot;field_type&quot;:1, &quot;input_type&quot;:3, &quot;is_display&quot;:1, &quot;is_edit&quot;:1, &quot;is_empty&quot;:1, &quot;is_search&quot;:0, &quot;jump&quot;:6, &quot;field_json&quot;:&quot;[{\&quot;name\&quot;: \&quot;18\&quot;, \&quot;next\&quot;: \&quot;\&quot;}, {\&quot;name\&quot;: \&quot;19\&quot;, \&quot;next\&quot;: \&quot;\&quot;}]&quot;, &quot;status&quot;:1, &quot;crm_id&quot;:1 } ] }</code></p>