Loading…

Get information about any user

```javascript WXAPI.anonymousUserInfo(id) ``` + id user number The prerequisite for calling this interface is that you must first add a `switch type` parameter to the background system parameters`anonymous_user_info` This function is generally used in situations such as forums and communities where user information needs to be viewed. ```json { "code": 0, "data": { "ext": { "zy": "test" }, "shopInfo": { "id": 123, "name": "KFC" }, "userInfo": { "avatarUrl": "User avatar", "gender": 2, "grade": "Grade 2022", "id": 10898334, "isSeller": false, "nick": "Qiao Hui", "uid": 10898334, "xiaoqu": "西湖南园" } }, "msg": "success" } ``` Currently only the following information is returned: + ext user's extended information, so if this feature is turned on, do not save sensitive information to the user's extended attributes + shopInfo The user’s store information currently only returns the following data: - id store id - name store name + userInfo basic user information: - id user number - uid user number - avatarUrl avatar - gender gender, 0 unknown, 1 male, 2 female - grade grade - isSeller whether it is a distributor - nick nickname - The name of the community to which xiaoqu belongs