微信公众号查询用户信息接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>微信公众号查询用户信息接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://guide-api-test.feihe.com/stock-wechat/api/wxWeChat/queryUserInfo?openId=xxxxxxxxxxx</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </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;">openId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td><strong>微信公众号openId</strong></td>
</tr>
</tbody>
</table>
<h5>返回示例 1-已关注</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;data&quot;: {
&quot;subscribe&quot;: true,
&quot;openId&quot;: &quot;oc63ewmuBYT1PkeC2IEsT0n2gggg&quot;,
&quot;nickname&quot;: &quot;&quot;,
&quot;sexDesc&quot;: &quot;未知&quot;,
&quot;sex&quot;: 0,
&quot;language&quot;: &quot;zh_CN&quot;,
&quot;city&quot;: &quot;&quot;,
&quot;province&quot;: &quot;&quot;,
&quot;country&quot;: &quot;&quot;,
&quot;headImgUrl&quot;: &quot;&quot;,
&quot;subscribeTime&quot;: 1691386985,
&quot;unionId&quot;: &quot;o-Jdx1uV6IcO2H-jKvh0Yziti-ws&quot;,
&quot;remark&quot;: &quot;&quot;,
&quot;groupId&quot;: 0,
&quot;tagIds&quot;: [],
&quot;privileges&quot;: null,
&quot;subscribeScene&quot;: &quot;ADD_SCENE_PROFILE_CARD&quot;,
&quot;qrScene&quot;: &quot;0&quot;,
&quot;qrSceneStr&quot;: &quot;&quot;
}
}</code></pre>
<h5>返回示例 2-未关注</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;data&quot;: {
&quot;subscribe&quot;: false,
&quot;openId&quot;: &quot;oc63ewmuBYT1PkeC2IEsT0n2gggg&quot;,
&quot;nickname&quot;: &quot;&quot;,
&quot;sexDesc&quot;: &quot;未知&quot;,
&quot;sex&quot;: 0,
&quot;language&quot;: &quot;zh_CN&quot;,
&quot;city&quot;: &quot;&quot;,
&quot;province&quot;: &quot;&quot;,
&quot;country&quot;: &quot;&quot;,
&quot;headImgUrl&quot;: &quot;&quot;,
&quot;subscribeTime&quot;: null,
&quot;unionId&quot;: null,
&quot;remark&quot;: null,
&quot;groupId&quot;: null,
&quot;tagIds&quot;: [],
&quot;privileges&quot;: null,
&quot;subscribeScene&quot;: null,
&quot;qrScene&quot;: null,
&quot;qrSceneStr&quot;: null
}
}</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;">subscribe</td>
<td style="text-align: left;">boolean</td>
<td>是否关注:true:是,false:未关注</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>状态码:200:成功,400:查询失败</td>
</tr>
</tbody>
</table>
<ul>
<li>其他字段释义:[微信查询用户信息机制](<a href="http://https://developers.weixin.qq.com/doc/offiaccount/User_Management/Get_users_basic_information_UnionID.html#UinonId">http://https://developers.weixin.qq.com/doc/offiaccount/User_Management/Get_users_basic_information_UnionID.html#UinonId</a> "微信查询用户信息机制")</li>
</ul>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>