wxhook

微信


发送位置消息

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>发送位置消息</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:30001/SendLocationMsg</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <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;">wxid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>对方微信ID/群ID</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>要发送的位置消息内容(xml内容,不能有换行,注意中间的引号用\转译!)</td> </tr> </tbody> </table> <h5>发送方法一(提交json)</h5> <pre><code>{     &amp;quot;wxid&amp;quot;: &amp;quot;filehelper&amp;quot;,     &amp;quot;msg&amp;quot;: &amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot;?&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;location x=\&amp;quot;29.789783\&amp;quot; y=\&amp;quot;121.574013\&amp;quot; scale=\&amp;quot;15\&amp;quot; label=\&amp;quot;鄞州区万卷路\&amp;quot; maptype=\&amp;quot;0\&amp;quot; poiname=\&amp;quot;中海国际社区65幢(宁波市鄞州区)\&amp;quot; poiid=\&amp;quot;\&amp;quot; buildingId=\&amp;quot;\&amp;quot; floorName=\&amp;quot;\&amp;quot; /&amp;gt;&amp;lt;/msg&amp;gt;&amp;quot; }</code></pre> <h5>返回示例</h5> <pre><code> { &amp;quot;success&amp;quot;: &amp;quot;1&amp;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;">success</td> <td style="text-align: left;">string</td> <td>1=操作成功 0=操作失败</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML