POST api/mini/save
【小程序】保存用户信息
Request Information
URI Parameters
None.
Body Parameters
MiniProgramInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| nickName |
用户昵称 |
string |
None. |
| avatarUrl |
用户头像 |
string |
None. |
| gender |
用户的性别 |
string |
None. |
| city |
用户所在城市 |
string |
None. |
| province |
用户所在省份 |
string |
None. |
| country |
用户所在国家 |
string |
None. |
| language |
用户的语言,简体中文为zh_CN |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"nickName": "sample string 1",
"avatarUrl": "sample string 2",
"gender": "sample string 3",
"city": "sample string 4",
"province": "sample string 5",
"country": "sample string 6",
"language": "sample string 7"
}
application/xml, text/xml
Sample:
<MiniProgramInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web.Api.Models.Domain.MiniProgram"> <avatarUrl>sample string 2</avatarUrl> <city>sample string 4</city> <country>sample string 6</country> <gender>sample string 3</gender> <language>sample string 7</language> <nickName>sample string 1</nickName> <province>sample string 5</province> </MiniProgramInfo>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
【小程序】保存用户信息
MyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
-1表示失败,0表示成功 |
integer |
None. |
| msg |
错误信息 |
string |
None. |
| data |
响应消息 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2",
"data": {}
}
application/xml, text/xml
Sample:
<MyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tools"> <code>1</code> <data /> <msg>sample string 2</msg> </MyResponse>