POST api/SleepSum/GetPushMsgs

获取推送消息

Request Information

URI Parameters

None.

Body Parameters

GetPushMsgsReq
NameDescriptionTypeAdditional information
uid

string

None.

type

消息类型,1为系统消息,2为点赞消息,3为关注消息

integer

None.

count

integer

None.

page

integer

None.

maxTime

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

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetPushMsgsRes
NameDescriptionTypeAdditional information
isExistNotRead

integer

None.

minTime

string

None.

msgs

Collection of PushMsgModel

None.

Message

消息

string

None.

Status

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

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "isExistNotRead": 1,
  "minTime": "sample string 2",
  "msgs": [
    {
      "id": 1,
      "type": 2,
      "isread": 3,
      "title": "sample string 4",
      "content": "sample string 5",
      "time": "sample string 6",
      "headurl": "sample string 7",
      "fromUid": "sample string 8",
      "isVip": 9,
      "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"
      }
    },
    {
      "id": 1,
      "type": 2,
      "isread": 3,
      "title": "sample string 4",
      "content": "sample string 5",
      "time": "sample string 6",
      "headurl": "sample string 7",
      "fromUid": "sample string 8",
      "isVip": 9,
      "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"
      }
    }
  ],
  "Message": "sample string 3",
  "Status": 4
}

application/xml, text/xml

Sample:
<GetPushMsgsRes 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 3</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">4</Status>
  <isExistNotRead>1</isExistNotRead>
  <minTime>sample string 2</minTime>
  <msgs>
    <PushMsgModel>
      <content>sample string 5</content>
      <fromUid>sample string 8</fromUid>
      <headurl>sample string 7</headurl>
      <id>1</id>
      <isVip>9</isVip>
      <isread>3</isread>
      <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>
      <time>sample string 6</time>
      <title>sample string 4</title>
      <type>2</type>
    </PushMsgModel>
    <PushMsgModel>
      <content>sample string 5</content>
      <fromUid>sample string 8</fromUid>
      <headurl>sample string 7</headurl>
      <id>1</id>
      <isVip>9</isVip>
      <isread>3</isread>
      <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>
      <time>sample string 6</time>
      <title>sample string 4</title>
      <type>2</type>
    </PushMsgModel>
  </msgs>
</GetPushMsgsRes>