# Access to User Information
# Interface call request specification
Http request method: POST
https://api.weixin.qq.com/shop/userinfo/get?access_token=xxxxxxxxx
# Request Parameter Sample
{
"openid":"xxx"
}
# Return Package Example
{
"errcode":0,
"errmsg":"ok",
"userinfo":{
"union_id":"xxx",
"nick_Name ":" " ,
"mobile":"133xxxxxxxx",
"birthday":"20010101",
"avatar":"http://xxxxxxxxxxxxx",
"email":"test@qq.com",
"sex":1,
"country": "China,"
"auth_at":1630334763
}
}
# Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
---|---|---|---|
openid | string | yes | User's openid |
# Return parameter specification
parameter | type | Introductions |
---|---|---|
Errcode | number | Error code |
errmsg | string | Error message |
userinfo.union_id | string | unionid |
userinfo.nick_name | string | WeChat nickname |
userinfo.mobile | string | Authorized Phone Number |
userinfo.birthday | string | birthday |
userinfo.avatar | string | WeChat profile |
userinfo.email | string | mailbox |
userinfo.sex | int | Gender (1: male, 2: female, 3: unknown) |
userinfo.country | string | country |
userinfo.auth_at | int | Authorization time |