xie-full


获取单个好友信息

<p><strong>接口说明:</strong> </p> <ul> <li>发送获取个人好友信息消息</li> </ul> <p><strong>接口TYPE:</strong> </p> <ul> <li><code>MT_DATA_WXID_MSG</code></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> </tr> </thead> <tbody> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">object</td> <td style="text-align: left;">参见下面的DataJson参数</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">number</td> <td style="text-align: left;">消息类型</td> </tr> </tbody> </table> <p><strong>JSON示例</strong></p> <pre><code>{ &amp;quot;data&amp;quot; : { &amp;quot;wxid&amp;quot;: &amp;quot;xxxxxxx&amp;quot;, // 传入wxid }, &amp;quot;type&amp;quot; : MT_DATA_WXID_MSG }</code></pre> <hr /> <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> </tr> </thead> <tbody> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">object</td> <td style="text-align: left;">userInfo结构</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">number</td> <td style="text-align: left;">消息类型</td> </tr> </tbody> </table> <p>userInfo参数说明:</p> <pre><code> userInfo(好友信息结构) { &amp;quot;wxid&amp;quot;: &amp;quot;wxid&amp;quot;, //wxid &amp;quot;account&amp;quot;: &amp;quot;xxxxx&amp;quot;, //微信号(有可能为空) &amp;quot;nickname&amp;quot;:&amp;quot;xxxxx&amp;quot;, //微信昵称 &amp;quot;remark&amp;quot; :&amp;quot;xxxx&amp;quot;, //好友备注 &amp;quot;avatar&amp;quot;:&amp;quot;http://xxxxxxxx&amp;quot; //头像的url地址 &amp;quot;sex&amp;quot; : 0 , //性别:0或者1,默认是0,1代表女性 (新版为: 性别:0未知,1男,2女) &amp;quot;country&amp;quot;:&amp;quot;xxx&amp;quot;, //祖国(可能为空) &amp;quot;province&amp;quot;:&amp;quot;xxxx&amp;quot;, //省份(可能为空) &amp;quot;city&amp;quot;:&amp;quot;xxxxx&amp;quot; //城市(可能为空) }</code></pre> <p><strong>返回JSON示例</strong></p> <pre><code>{ &amp;quot;data&amp;quot; : { &amp;quot;account&amp;quot; : &amp;quot;xxxxx&amp;quot;, &amp;quot;avatar&amp;quot; : &amp;quot;http://xxxxx&amp;quot;, &amp;quot;city&amp;quot; : &amp;quot;&amp;quot;, &amp;quot;country&amp;quot; : &amp;quot;&amp;quot;, &amp;quot;nickname&amp;quot; : &amp;quot;xxxxx&amp;quot;, &amp;quot;province&amp;quot; : &amp;quot;&amp;quot;, &amp;quot;remark&amp;quot; : &amp;quot;xxxxx&amp;quot;, &amp;quot;sex&amp;quot; : 0, &amp;quot;wxid&amp;quot; : &amp;quot;wxid_xxxxx&amp;quot; }, &amp;quot;type&amp;quot; : MT_DATA_WXID_MSG }</code></pre>

页面列表

ITEM_HTML