POST api/SleepAccount/UploadHeadImg

上传用户头像

Request Information

URI Parameters

None.

Body Parameters

UploadHeadImgReq
NameDescriptionTypeAdditional information
imgBase64Str

string

None.

secret

string

None.

uid

string

None.

pid

integer

None.

version

string

None.

imei

string

None.

system

string

None.

token

string

None.

language

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "imgBase64Str": "sample string 1",
  "secret": "sample string 2",
  "uid": "sample string 3",
  "pid": 4,
  "version": "sample string 5",
  "imei": "sample string 6",
  "system": "sample string 7",
  "token": "sample string 8",
  "language": "sample string 9",
  "timeZone": "sample string 10"
}

application/xml, text/xml

Sample:
<UploadHeadImgReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <imei xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">4</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 5</version>
  <imgBase64Str>sample string 1</imgBase64Str>
  <secret>sample string 2</secret>
  <uid>sample string 3</uid>
</UploadHeadImgReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
</BaseResponse>