POST api/Sleep/PostUserPic

用户上传背景图接口

Request Information

URI Parameters

None.

Body Parameters

PostUserPicReq
NameDescriptionTypeAdditional information
pid

integer

None.

uniqueId

string

None.

secret

string

None.

imgContent

string

None.

ProductId

产品编号

integer

None.

Token

令牌,唯一标识,主要用来验权

string

None.

ChannalId

渠道号

string

None.

Version

外部版本

string

None.

language

语言

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pid": 1,
  "uniqueId": "sample string 2",
  "secret": "sample string 3",
  "imgContent": "sample string 4",
  "ProductId": 5,
  "Token": "sample string 6",
  "ChannalId": "sample string 7",
  "Version": "sample string 8",
  "language": "sample string 9"
}

application/xml, text/xml

Sample:
<PostUserPicReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <ChannalId xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</ChannalId>
  <ProductId xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">5</ProductId>
  <Token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</Token>
  <Version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</Version>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</language>
  <imgContent>sample string 4</imgContent>
  <pid>1</pid>
  <secret>sample string 3</secret>
  <uniqueId>sample string 2</uniqueId>
</PostUserPicReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
State

integer

None.

Message

string

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

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