WeChatApi


网络查询陌生人信息

<p><strong>简要描述:</strong></p> <ul> <li>网络查询陌生人信息,因为走了网络调用,建议控制好调用频率</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;">key</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td style="text-align: left;">手机号/QQ号/微信号</td> </tr> </tbody> </table> <p><strong>发送示例:</strong></p> <pre><code class="language-json">{     &amp;quot;type&amp;quot;: 21, &amp;quot;key&amp;quot;: &amp;quot;1380000000&amp;quot; }</code></pre> <p><strong>返回示例:</strong></p> <pre><code class="language-json">{ &amp;quot;data&amp;quot;: { &amp;quot;nick_name&amp;quot;: &amp;quot;水水水-Jun&amp;quot;, //昵称 &amp;quot;avatar_url&amp;quot;: &amp;quot;http://wx.qlogo.cn/mmhead/ver_1/xxxx&amp;quot;, //头像url &amp;quot;gender&amp;quot;: 1, //性别(1:男 2:女 0:未设置) &amp;quot;sign_info&amp;quot;: &amp;quot;忍一忍风平浪静,退一步海阔天空&amp;quot;, //个性签名 &amp;quot;nation&amp;quot;: &amp;quot;CN&amp;quot;, //国家 &amp;quot;province&amp;quot;: &amp;quot;Guangdong&amp;quot;, //省份 &amp;quot;city&amp;quot;: &amp;quot;Meizhou&amp;quot;, //城市 &amp;quot;v3&amp;quot;: &amp;quot;v3_020b3826fd03010000000000@stranger&amp;quot;, //v3数据(不是陌生人该值为微信ID) &amp;quot;v4&amp;quot;: &amp;quot;v4_000b708f0b0400000100000b@stranger&amp;quot;, //v4数据(不是陌生人该值为空) &amp;quot;wx_account&amp;quot;: &amp;quot;xxxx&amp;quot; //微信账号(不是好友该值为空) }, &amp;quot;errmsg&amp;quot;: &amp;quot;OK&amp;quot;, &amp;quot;errno&amp;quot;: 0 }</code></pre>

页面列表

ITEM_HTML