Detailed registration for WeChat Mini Program users
SDK apifmDevelopment reference
Users registered with this interface will automatically obtain the user's WeChat avatar and nickname.
First, follow the official documentation of WeChat Mini Program to obtain the user’s WeChat information:
["WeChat Mini Program obtains user information"](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html)
After obtaining the user's encrypted data, call the following interface to register:
```javascript
WXAPI.register_complex({
code: '',
encryptedData: '',
iv: '',
postJsonString: '',
referrer: ''
})
```
+ code is the user’s temporary code obtained by calling the WeChat login interface.
+ encryptedData and iv are the encrypted information returned by the mobile phone number interface.
+ postJsonString json data of user's extended attributes (requires string)
+ referrer The referrer information saved when registering this user
```json
{
code: 0,
msg: 'success'
}
```