POST api/Sleep/EncrypPostSleepInfo

(加密)上传睡眠信息

Request Information

URI Parameters

None.

Body Parameters

PostSleepInfoReq
NameDescriptionTypeAdditional information
uniqueId

string

None.

startTime

date

None.

endTime

date

None.

sleepStates

string

None.

audioContents

string

None.

audioCount

梦话数量

integer

None.

secret

string

None.

isTest

integer

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:
{
  "uniqueId": "sample string 1",
  "startTime": "2020-07-13T12:30:21.5693888+08:00",
  "endTime": "2020-07-13T12:30:21.5693888+08:00",
  "sleepStates": "sample string 4",
  "audioContents": "sample string 5",
  "audioCount": 6,
  "secret": "sample string 7",
  "isTest": 8,
  "pid": 9,
  "version": "sample string 10",
  "imei": "sample string 11",
  "system": "sample string 12",
  "token": "sample string 13",
  "language": "sample string 14",
  "timeZone": "sample string 15"
}

application/xml, text/xml

Sample:
<PostSleepInfoReq 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 11</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 14</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">9</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 12</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 15</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 13</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</version>
  <audioContents>sample string 5</audioContents>
  <audioCount>6</audioCount>
  <endTime>2020-07-13T12:30:21.5693888+08:00</endTime>
  <isTest>8</isTest>
  <secret>sample string 7</secret>
  <sleepStates>sample string 4</sleepStates>
  <startTime>2020-07-13T12:30:21.5693888+08:00</startTime>
  <uniqueId>sample string 1</uniqueId>
</PostSleepInfoReq>

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>