Update User Mobile via WeChat Authorized Mobile
Some functions of the Mini Program require the user to have a mobile number. After obtaining user authorization, call this interface to update the user's mobile number to the WeChat authorized mobile number.
Request Description
Request Headers
| Parameter Name | Name | Required | Type | Example |
|---|---|---|---|---|
| X-operating-sys-version | Client Operating System Version | Yes | String | windows10.1.1 |
| X-device-fingerprint | Client Device Fingerprint | Yes | String | 156aysdna213sc50 |
| X-device-ip | Client IP | No | String | 192.168.1.2 |
| X-agent | User-Agent Information | Yes | String | Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) |
| X-L | Used for Internationalization Language Settings | No | String | zh |
| X-client-id | Application Authorization ID | Yes | String | nTo1eRIub60vPb54WeE6aojPwYwImtl4 |
| Authorization | Authorization Information | Yes | String | Bearer {id_token} |
| content-type | Content Format Type | Yes | String | application/json |
Request Example
json
{
"wechat_code":"38e915cd65e12e047c2a577be6bb2"
}Request Parameters
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| wechat_code | WeChat Mobile Authorization Code | Yes | String | Authorization code returned by the WeChat Mini Program after the user authorizes the WeChat mobile authorization popup launched by the Mini Program |
Response Example
Success Example
HTTP/1.1 200 OK
Error Example
HTTP/1.1 400 Bad Request
json
{
"error_msg": "Error calling wechat miniprogram interface",
"error_code": " IDAAS.SDK.LOGIN.1001"
}Response Parameters
None