活动api


微信公众号查询用户信息接口

<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>{ &amp;quot;code&amp;quot;: 200, &amp;quot;msg&amp;quot;: &amp;quot;操作成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;subscribe&amp;quot;: true, &amp;quot;openId&amp;quot;: &amp;quot;oc63ewmuBYT1PkeC2IEsT0n2gggg&amp;quot;, &amp;quot;nickname&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;sexDesc&amp;quot;: &amp;quot;未知&amp;quot;, &amp;quot;sex&amp;quot;: 0, &amp;quot;language&amp;quot;: &amp;quot;zh_CN&amp;quot;, &amp;quot;city&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;province&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;country&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;headImgUrl&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;subscribeTime&amp;quot;: 1691386985, &amp;quot;unionId&amp;quot;: &amp;quot;o-Jdx1uV6IcO2H-jKvh0Yziti-ws&amp;quot;, &amp;quot;remark&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;groupId&amp;quot;: 0, &amp;quot;tagIds&amp;quot;: [], &amp;quot;privileges&amp;quot;: null, &amp;quot;subscribeScene&amp;quot;: &amp;quot;ADD_SCENE_PROFILE_CARD&amp;quot;, &amp;quot;qrScene&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;qrSceneStr&amp;quot;: &amp;quot;&amp;quot; } }</code></pre> <h5>返回示例 2-未关注</h5> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;msg&amp;quot;: &amp;quot;操作成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;subscribe&amp;quot;: false, &amp;quot;openId&amp;quot;: &amp;quot;oc63ewmuBYT1PkeC2IEsT0n2gggg&amp;quot;, &amp;quot;nickname&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;sexDesc&amp;quot;: &amp;quot;未知&amp;quot;, &amp;quot;sex&amp;quot;: 0, &amp;quot;language&amp;quot;: &amp;quot;zh_CN&amp;quot;, &amp;quot;city&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;province&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;country&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;headImgUrl&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;subscribeTime&amp;quot;: null, &amp;quot;unionId&amp;quot;: null, &amp;quot;remark&amp;quot;: null, &amp;quot;groupId&amp;quot;: null, &amp;quot;tagIds&amp;quot;: [], &amp;quot;privileges&amp;quot;: null, &amp;quot;subscribeScene&amp;quot;: null, &amp;quot;qrScene&amp;quot;: null, &amp;quot;qrSceneStr&amp;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> &quot;微信查询用户信息机制&quot;)</li> </ul> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML