发布程序接口


抖音视频发布+图文发布

<p>[TOC]</p> <h3>抖音视频发布+图文发布</h3> <h5>描述</h5> <ul> <li>抖音创作平台发布,支持图文发布,视频,挂载小程序,合集操作,挂载商品</li> </ul> <h5>请求方式</h5> <ul> <li>POST</li> </ul> <h5>ContentType</h5> <ul> <li>application/x-www-form-urlencoded</li> </ul> <h5>请求URL</h5> <ul> <li><code>/dy/pubvideo</code></li> </ul> <h5>请求参数</h5> <h5>Query Parameter</h5> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必填</th> <th>最大长度</th> <th>描述</th> <th>示例值</th> </tr> </thead> <tbody> <tr> <td>apiKey</td> <td>string</td> <td>&lt;font color=red&gt;是&lt;/font&gt;</td> <td>64</td> <td>api通信接口密钥</td> <td></td> </tr> </tbody> </table> <h5>Body Parameter</h5> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必填</th> <th>最大长度</th> <th>描述</th> <th>示例值</th> </tr> </thead> <tbody> <tr> <td>imagecover</td> <td>string</td> <td>否</td> <td>64</td> <td>视频封面</td> <td><a href="http://xxxxx.com/xxx.png">http://xxxxx.com/xxx.png</a></td> </tr> <tr> <td>ck</td> <td>string</td> <td>&lt;font color=red&gt;是&lt;/font&gt;</td> <td>64</td> <td>抖音COOKIE信息</td> <td></td> </tr> <tr> <td>type</td> <td>number</td> <td>否</td> <td>64</td> <td>发布类型</td> <td>默认0,1为发布视频,0为发布图文</td> </tr> <tr> <td>posttype</td> <td>number</td> <td>否</td> <td>64</td> <td>发布方式</td> <td>默认0,0为服务端发布,1为客户发布返回最后一步发布参数</td> </tr> <tr> <td>timing</td> <td>string</td> <td>否</td> <td>64</td> <td>定时发布设置,默认-1:立即发布,10位时间长整型</td> <td>-1</td> </tr> <tr> <td>video</td> <td>string</td> <td>否</td> <td>500</td> <td>视频地址</td> <td><a href="http://xxxxx.com/xxx.mp4">http://xxxxx.com/xxx.mp4</a></td> </tr> <tr> <td>imageurls</td> <td>array</td> <td>否</td> <td>500</td> <td>图片合集地址与视频地址选填其一</td> <td>['<a href="http://xxxxx.com/xxx.png','http://xxxxx.com/xxx.png">http://xxxxx.com/xxx.png','http://xxxxx.com/xxx.png</a>']</td> </tr> <tr> <td>text</td> <td>string</td> <td>&lt;font color=red&gt;是&lt;/font&gt;</td> <td>500</td> <td>抖音描述信息</td> <td>蜂胶蜂蜜 #蜂蜜 #蜂胶</td> </tr> <tr> <td>poiid</td> <td>string</td> <td>否</td> <td>64</td> <td>位置ID</td> <td></td> </tr> <tr> <td>poiname</td> <td>string</td> <td>否</td> <td>500</td> <td>位置地址</td> <td></td> </tr> <tr> <td>music_id</td> <td>string</td> <td>否</td> <td>64</td> <td>背景音乐ID</td> <td></td> </tr> <tr> <td>duration</td> <td>number</td> <td>否</td> <td>64</td> <td>背景音乐时长</td> <td></td> </tr> <tr> <td>mix_id</td> <td>string</td> <td>否</td> <td>64</td> <td>合集ID</td> <td></td> </tr> <tr> <td>shoptitle</td> <td>string</td> <td>否</td> <td>500</td> <td>挂载商品标题</td> <td></td> </tr> <tr> <td>shopurl</td> <td>string</td> <td>否</td> <td>500</td> <td>挂载商品地址</td> <td></td> </tr> <tr> <td>shop_draft_id</td> <td>string</td> <td>否</td> <td>64</td> <td>挂载商品ID</td> <td></td> </tr> <tr> <td>microapp</td> <td>string</td> <td>否</td> <td>500</td> <td>小程序地址</td> <td></td> </tr> <tr> <td>ip</td> <td>string</td> <td>否</td> <td>64</td> <td>代理IP</td> <td></td> </tr> <tr> <td>port</td> <td>number</td> <td>否</td> <td>64</td> <td>代理端口</td> <td></td> </tr> <tr> <td>user</td> <td>string</td> <td>否</td> <td>64</td> <td>代理用户名</td> <td></td> </tr> <tr> <td>pwd</td> <td>string</td> <td>否</td> <td>64</td> <td>代理密码</td> <td></td> </tr> </tbody> </table> <h5>响应参数</h5> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必填</th> <th>示例值</th> </tr> </thead> <tbody> <tr> <td>result</td> <td>number</td> <td>1为成功,0为失败错误</td> <td></td> </tr> <tr> <td>info</td> <td>string</td> <td>返回信息</td> <td></td> </tr> <tr> <td>data</td> <td>object</td> <td>返回发布结果信息</td> <td></td> </tr> </tbody> </table> <h5>响应示例</h5> <pre><code>{ &amp;quot;result&amp;quot;: 0, &amp;quot;info&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;data&amp;quot;: {} }</code></pre> <h5>错误码</h5> <table> <thead> <tr> <th>错误码</th> <th>错误描述</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>200</td> <td>请求成功</td> <td></td> </tr> <tr> <td>400</td> <td>请求失败</td> <td></td> </tr> <tr> <td>500</td> <td>服务端错误</td> <td></td> </tr> </tbody> </table>

页面列表

ITEM_HTML