# 微信测试公众号如何获得 OpenID

**URL:** <https://www.isharkfly.com/t/openid/14381>\
**Category:** 软件技术\
**Tags:** wechat\
**Created:** [April 20, 2023, 5:55pm UTC](https://www.isharkfly.com/t/openid/14381 "2023-04-20T17:55:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas](https://www.isharkfly.com/user_avatar/www.isharkfly.com/lucas/32/20805_2.png) [@lucas](https://www.isharkfly.com/u/lucas)\
**Post date:** [April 20, 2023, 5:55pm UTC](https://www.isharkfly.com/t/openid/14381/1 "2023-04-20T17:55:12Z")

</div>

登录微信的测试公众号。

然后把测试公众号的二维码发送给希望关注这个测试公众号的测试用户。

然后在微信号部分，这个就是我们在后端调试 API 使用的 OpenID。

 ![2023-04-20_13-53-58](https://com-ossez-www-discourse.s3.dualstack.us-east-2.amazonaws.com/discourse-uploads/original/2X/e/eaaef8156c4ec2cee0247e1ffa15faf8de0ada8c.png)

需要注意的是，微信的 OpenId 根据每一个公众号的同是不同的。

就算同一个微信用户，在关注不同的公众号后，公众号拿到的 OpenId 是不同的。
