【137】上传文件_千牛
<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>Api_GetFilesUrl_qianniu(&quot;$userNick$&quot;,&quot;C:\Users\Administrator\Desktop\111.xls&quot;)</code></pre>
<h5>易语言模块调用例子</h5>
<pre><code>SaiNiu.Api.上传文件_千牛(&quot;$userNick$&quot;,&quot;C:\Users\Administrator\Desktop\111.xls&quot;)</code></pre>
<h5>POST调用例子</h5>
<pre><code>http://127.0.0.1:3030/SaiNiuApi/Api</code></pre>
<pre><code>&amp;post=GetFilesUrl_qianniu&amp;data={&quot;userNick&quot;:&quot;$userNick$&quot;,&quot;filePath&quot;:&quot;C:\\Users\\Administrator\\Desktop\\111.xls&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;">千牛账号,为方便测试$userNick$表示取随机队列账号</td>
<td>tb123456</td>
</tr>
<tr>
<td style="text-align: left;">filePath</td>
<td style="text-align: left;">整数型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">文件路径,POST需要转义</td>
<td>C:\Users\Administrator\Desktop\111.xls</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{&quot;errorCode&quot;:null,&quot;errorMsg&quot;:null,&quot;result&quot;:{&quot;url&quot;:&quot;http://worklink-private.oss-cn-hangzhou.aliyuncs.com/worklink_attachment/B9C3D986505A03901CB56CAFD219D2B2.xls?Expires=1748106680&amp;OSSAccessKeyId=TMP.3KscH15Ac3BGbuU8ix5K2fTRBCs5udaX6uCdSPmV6p7SFYMg7CK1VMM2Bc2Pb3dsTFqN6nxN7vYuFgJdKKKrzxX9YK1o2i&amp;Signature=e8MypnfRSARkOrHPQLXt8gqcTpU%3D&quot;,&quot;ossName&quot;:&quot;worklink_attachment/B9C3D986505A03901CB56CAFD219D2B2.xls&quot;},&quot;success&quot;:true}</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;">reg</td>
<td style="text-align: left;">文本型</td>
<td>结果说明,调用成功或失败原因</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>