ipadchat-go

ipadchat的golang版本


初始化微信实例

<p><strong>简要描述:</strong> </p> <ul> <li>初始化微信实例</li> <li>通讯机制描述:在初始化实例的时候需要传入回调事件请求的url地址,这个地址会存在服务端的内存中与微信实例号绑定</li> <li>须知:如果这个实例被调用过登录接口,或者二维码扫码确认过了,不管结果如何这个实例都不能重新再复用了,要么就正常登录,要么不登录就等待服务端自动清理掉</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/init</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <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;">callback_url</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>消息事件回调地址</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 1, &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;wx_user&amp;quot;: &amp;quot;44630544&amp;quot; } }</code></pre> <p><strong>返回参数说明</strong> </p> <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;">int</td> <td>返回1成功,否则是非正常</td> </tr> </tbody> </table> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML