API call address
{域名地址}/api/setting/contact
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/setting/contact
Calling methods
GET
Request parameters
none
Return parameters
Field name | type | illustrate |
---|---|---|
code | int | Error code |
msg | string | Error Cause Description |
data | object | Results content |
data result parameters
Field name | type | illustrate |
---|---|---|
UserName | string | Contact |
Cellphone | string | Contact number |
Address | string | Contact address |
string | Contact Email | |
string | Contact WeChat | |
Qrcode | string | WeChat QR code |
Custom parameters | string | Customized parameters in the background contact information |
Request data example
none
Return to the data example
WhatsApp specifies the parameters to be used, and if there are more custom parameters, it will also be displayed here.
{
"code": 0,
"data": {
"Address": "广东省深圳市南山区深南大道xxx号",
"Cellphone": "13888888888",
"Email": "[email protected]",
"Qrcode": "/uploads/202209/06/64d0c4ee3e877dd6.webp",
"UserName": "张大仙",
"Wechat": "13888888888",
"WhatsApp": "+8613888888888"
},
"msg": ""
}
Error code
Error code | illustrate |
---|---|
0 | OK |
-1 | Error, the cause of the error is pointed out in msg |
1001 | Not logged in |
1002 | Unauthorized |
200 | API request OK |