【11】新增关键词话术
<p>[TOC]</p>
<h5>接口状态</h5>
<ul>
<li><code>正常</code></li>
</ul>
<h5>框架版本</h5>
<ul>
<li><code>≥ 2.0.5.0</code></li>
</ul>
<h5>更新时间</h5>
<ul>
<li><code>2024/11/23</code></li>
</ul>
<h5>调用额度</h5>
<ul>
<li><code>免额度</code></li>
</ul>
<h5>简要描述</h5>
<ul>
<li>新增官方机器人关键词话术</li>
</ul>
<h5>DLL调用例子</h5>
<pre><code>Robot_PostAddKeywordScript(&quot;tb123456&quot;,&quot;发什么快递&quot;,&quot;我们虚拟发货的,不需要发快递&quot;,&quot;https://img.alicdn.com/imgextra/i4/xxx.png&quot;)</code></pre>
<h5>易语言模块调用例子</h5>
<pre><code>SaiNiu.Robot.新增关键词话术(&quot;tb123456&quot;,&quot;发什么快递&quot;,&quot;我们虚拟发货的,不需要发快递&quot;,&quot;https://img.alicdn.com/imgextra/i4/xxx.png&quot;)</code></pre>
<h5>POST调用例子</h5>
<pre><code>http://127.0.0.1:3030/SaiNiuApi/Robot</code></pre>
<pre><code>&amp;post=PostAddKeywordScript&amp;data={&quot;userNick&quot;:&quot;tb123456&quot;,&quot;keywords&quot;:&quot;发什么快递&quot;,&quot;tetx&quot;:&quot;我们虚拟发货的,不需要发快递&quot;,&quot;imageURL&quot;:&quot;https:////img.alicdn.com//imgextra//i4//xxx.png&quot;}</code></pre>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">是否必填</th>
<th style="text-align: left;">说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userNick</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">千牛账号</td>
<td>tb123456</td>
</tr>
<tr>
<td style="text-align: left;">keywords</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">关键词,多个一行一个</td>
<td>发什么快递</td>
</tr>
<tr>
<td style="text-align: left;">tetx</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">匹配文本,可以留空</td>
<td>我们虚拟发货的,不需要发快递</td>
</tr>
<tr>
<td style="text-align: left;">imageURL</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">图片网络地址,可以留空</td>
<td><a href="https://img.alicdn.com/imgextra/i4/xxx.png">https://img.alicdn.com/imgextra/i4/xxx.png</a></td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{&quot;code&quot;:200,&quot;data&quot;:{&quot;code&quot;:&quot;SUCCESS&quot;,&quot;data&quot;:{...},&quot;ret&quot;:[&quot;SUCCESS::调用成功&quot;]}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">整数型</td>
<td>返回结果,成功=200,失败≠200</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">文本型</td>
<td>调用结果</td>
</tr>
<tr>
<td style="text-align: left;">ret</td>
<td style="text-align: left;">文本型</td>
<td>结果结果说明</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>