获取单个好友信息
<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>{
&quot;data&quot; : {
&quot;wxid&quot;: &quot;xxxxxxx&quot;, // 传入wxid
},
&quot;type&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(好友信息结构)
{
&quot;wxid&quot;: &quot;wxid&quot;, //wxid
&quot;account&quot;: &quot;xxxxx&quot;, //微信号(有可能为空)
&quot;nickname&quot;:&quot;xxxxx&quot;, //微信昵称
&quot;remark&quot; :&quot;xxxx&quot;, //好友备注
&quot;avatar&quot;:&quot;http://xxxxxxxx&quot; //头像的url地址
&quot;sex&quot; : 0 , //性别:0或者1,默认是0,1代表女性 (新版为: 性别:0未知,1男,2女)
&quot;country&quot;:&quot;xxx&quot;, //祖国(可能为空)
&quot;province&quot;:&quot;xxxx&quot;, //省份(可能为空)
&quot;city&quot;:&quot;xxxxx&quot; //城市(可能为空)
}</code></pre>
<p><strong>返回JSON示例</strong></p>
<pre><code>{
&quot;data&quot; : {
&quot;account&quot; : &quot;xxxxx&quot;,
&quot;avatar&quot; : &quot;http://xxxxx&quot;,
&quot;city&quot; : &quot;&quot;,
&quot;country&quot; : &quot;&quot;,
&quot;nickname&quot; : &quot;xxxxx&quot;,
&quot;province&quot; : &quot;&quot;,
&quot;remark&quot; : &quot;xxxxx&quot;,
&quot;sex&quot; : 0,
&quot;wxid&quot; : &quot;wxid_xxxxx&quot;
},
&quot;type&quot; : MT_DATA_WXID_MSG
}</code></pre>