POST api/SleepSum/SumInfo

获取用户累计的信息

Request Information

URI Parameters

None.

Body Parameters

SleepSumReq
NameDescriptionTypeAdditional information
pid

integer

None.

uniqueid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pid": 1,
  "uniqueid": "sample string 2"
}

application/xml, text/xml

Sample:
<SleepSumReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <pid>1</pid>
  <uniqueid>sample string 2</uniqueid>
</SleepSumReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SleepSumInfo
NameDescriptionTypeAdditional information
AllSleepTime

string

None.

AllSleepDays

integer

None.

AvgSleepTime

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AllSleepTime": "sample string 1",
  "AllSleepDays": 2,
  "AvgSleepTime": "sample string 3"
}

application/xml, text/xml

Sample:
<SleepSumInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <AllSleepDays>2</AllSleepDays>
  <AllSleepTime>sample string 1</AllSleepTime>
  <AvgSleepTime>sample string 3</AvgSleepTime>
</SleepSumInfo>