POST api/SleepSum/GeUserDyns

获取用户动态

Request Information

URI Parameters

None.

Body Parameters

GettUserDynsReq
NameDescriptionTypeAdditional information
getUid

需要获取信息的用户id(当与当前用户id不相同时,不需要设置count,page,默认返回今天的睡眠数据)

string

None.

uid

当前用户id

string

None.

count

integer

None.

page

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:
{
  "getUid": "sample string 1",
  "uid": "sample string 2",
  "count": 3,
  "page": 4,
  "pid": 5,
  "version": "sample string 6",
  "imei": "sample string 7",
  "system": "sample string 8",
  "token": "sample string 9",
  "language": "sample string 10",
  "timeZone": "sample string 11"
}

application/xml, text/xml

Sample:
<GettUserDynsReq 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 7</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">5</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 11</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</version>
  <count>3</count>
  <getUid>sample string 1</getUid>
  <page>4</page>
  <uid>sample string 2</uid>
</GettUserDynsReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GettUserDynsRes
NameDescriptionTypeAdditional information
dyns

Collection of ListAllSleepInfosModel

None.

Message

消息

string

None.

Status

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

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "dyns": [
    {
      "sleepId": 1,
      "pid": 2,
      "startTime": "sample string 3",
      "endTime": "sample string 4",
      "sleepTime": "sample string 5",
      "date": "sample string 6",
      "uid": "sample string 7",
      "nickName": "sample string 8",
      "headImgurl": "sample string 9",
      "audioUrl": [
        "sample string 1",
        "sample string 2"
      ],
      "audioCount": 10,
      "sleepStates": [
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        },
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        }
      ],
      "sleepScores": [
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        },
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        }
      ],
      "finalScore": "sample string 11",
      "suggestion": "sample string 12",
      "isLike": 13,
      "likeCount": 14,
      "medal": {
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "getImgUrl": "sample string 4",
        "noGetImgUrl": "sample string 5",
        "type": 6,
        "level": 7,
        "isGet": 8,
        "headUrl": "sample string 9"
      },
      "isVip": 15
    },
    {
      "sleepId": 1,
      "pid": 2,
      "startTime": "sample string 3",
      "endTime": "sample string 4",
      "sleepTime": "sample string 5",
      "date": "sample string 6",
      "uid": "sample string 7",
      "nickName": "sample string 8",
      "headImgurl": "sample string 9",
      "audioUrl": [
        "sample string 1",
        "sample string 2"
      ],
      "audioCount": 10,
      "sleepStates": [
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        },
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        }
      ],
      "sleepScores": [
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        },
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        }
      ],
      "finalScore": "sample string 11",
      "suggestion": "sample string 12",
      "isLike": 13,
      "likeCount": 14,
      "medal": {
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "getImgUrl": "sample string 4",
        "noGetImgUrl": "sample string 5",
        "type": 6,
        "level": 7,
        "isGet": 8,
        "headUrl": "sample string 9"
      },
      "isVip": 15
    }
  ],
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<GettUserDynsRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <Message xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 1</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">2</Status>
  <dyns>
    <ListAllSleepInfosModel>
      <audioCount>10</audioCount>
      <audioUrl xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </audioUrl>
      <date>sample string 6</date>
      <endTime>sample string 4</endTime>
      <finalScore>sample string 11</finalScore>
      <headImgurl>sample string 9</headImgurl>
      <isLike>13</isLike>
      <isVip>15</isVip>
      <likeCount>14</likeCount>
      <medal xmlns:d4p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
        <d4p1:description>sample string 3</d4p1:description>
        <d4p1:getImgUrl>sample string 4</d4p1:getImgUrl>
        <d4p1:headUrl>sample string 9</d4p1:headUrl>
        <d4p1:id>1</d4p1:id>
        <d4p1:isGet>8</d4p1:isGet>
        <d4p1:level>7</d4p1:level>
        <d4p1:name>sample string 2</d4p1:name>
        <d4p1:noGetImgUrl>sample string 5</d4p1:noGetImgUrl>
        <d4p1:type>6</d4p1:type>
      </medal>
      <nickName>sample string 8</nickName>
      <pid>2</pid>
      <sleepId>1</sleepId>
      <sleepScores>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
      </sleepScores>
      <sleepStates>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
      </sleepStates>
      <sleepTime>sample string 5</sleepTime>
      <startTime>sample string 3</startTime>
      <suggestion>sample string 12</suggestion>
      <uid>sample string 7</uid>
    </ListAllSleepInfosModel>
    <ListAllSleepInfosModel>
      <audioCount>10</audioCount>
      <audioUrl xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </audioUrl>
      <date>sample string 6</date>
      <endTime>sample string 4</endTime>
      <finalScore>sample string 11</finalScore>
      <headImgurl>sample string 9</headImgurl>
      <isLike>13</isLike>
      <isVip>15</isVip>
      <likeCount>14</likeCount>
      <medal xmlns:d4p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
        <d4p1:description>sample string 3</d4p1:description>
        <d4p1:getImgUrl>sample string 4</d4p1:getImgUrl>
        <d4p1:headUrl>sample string 9</d4p1:headUrl>
        <d4p1:id>1</d4p1:id>
        <d4p1:isGet>8</d4p1:isGet>
        <d4p1:level>7</d4p1:level>
        <d4p1:name>sample string 2</d4p1:name>
        <d4p1:noGetImgUrl>sample string 5</d4p1:noGetImgUrl>
        <d4p1:type>6</d4p1:type>
      </medal>
      <nickName>sample string 8</nickName>
      <pid>2</pid>
      <sleepId>1</sleepId>
      <sleepScores>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
      </sleepScores>
      <sleepStates>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
      </sleepStates>
      <sleepTime>sample string 5</sleepTime>
      <startTime>sample string 3</startTime>
      <suggestion>sample string 12</suggestion>
      <uid>sample string 7</uid>
    </ListAllSleepInfosModel>
  </dyns>
</GettUserDynsRes>