vworkApi


CDN上传文件

<p><strong>简要描述:</strong></p> <ul> <li>CDN上传文件</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://127.0.0.1:8989/api</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>JSON参数:</strong></p> <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> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td style="text-align: left;">消息类型</td> </tr> <tr> <td style="text-align: left;">path</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td style="text-align: left;">文件的绝对路径</td> </tr> </tbody> </table> <p><strong>发送示例:</strong></p> <pre><code class="language-json">{     &amp;quot;type&amp;quot;: 9000,     &amp;quot;path&amp;quot;: &amp;quot;C:\\Users\\Administrator\\Desktop\\1.silk&amp;quot; }</code></pre> <p><strong>返回示例:</strong></p> <pre><code class="language-json">{ &amp;quot;data&amp;quot;: { &amp;quot;cdn_key&amp;quot;: &amp;quot;3069020102000000000000000000000000&amp;quot;, &amp;quot;aes_key&amp;quot;: &amp;quot;64320000000000000000&amp;quot;, &amp;quot;md5&amp;quot;: &amp;quot;c8caaxxxxxxxxxxxxxxxxxxxxx&amp;quot;, &amp;quot;size&amp;quot;: 62725 }, &amp;quot;errmsg&amp;quot;: &amp;quot;OK&amp;quot;, &amp;quot;errno&amp;quot;: 0 }</code></pre>

页面列表

ITEM_HTML