POST api/SleepUser/GetUserMedals

获取用户勋章接口

Request Information

URI Parameters

None.

Body Parameters

GetUserMedalsReq
NameDescriptionTypeAdditional information
uid

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",
  "pid": 2,
  "version": "sample string 3",
  "imei": "sample string 4",
  "system": "sample string 5",
  "token": "sample string 6",
  "language": "sample string 7",
  "timeZone": "sample string 8"
}

application/xml, text/xml

Sample:
<GetUserMedalsReq 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 4</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">2</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 5</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</timeZone>
  <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 3</version>
  <uid>sample string 1</uid>
</GetUserMedalsReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetUserMedalsRes
NameDescriptionTypeAdditional information
medals

Collection of Medal

None.

Message

消息

string

None.

Status

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

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "medals": [
    {
      "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,
      "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 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<GetUserMedalsRes 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>
  <medals xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
    <d2p1:Medal>
      <d2p1:description>sample string 3</d2p1:description>
      <d2p1:getImgUrl>sample string 4</d2p1:getImgUrl>
      <d2p1:headUrl>sample string 9</d2p1:headUrl>
      <d2p1:id>1</d2p1:id>
      <d2p1:isGet>8</d2p1:isGet>
      <d2p1:level>7</d2p1:level>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:noGetImgUrl>sample string 5</d2p1:noGetImgUrl>
      <d2p1:type>6</d2p1:type>
    </d2p1:Medal>
    <d2p1:Medal>
      <d2p1:description>sample string 3</d2p1:description>
      <d2p1:getImgUrl>sample string 4</d2p1:getImgUrl>
      <d2p1:headUrl>sample string 9</d2p1:headUrl>
      <d2p1:id>1</d2p1:id>
      <d2p1:isGet>8</d2p1:isGet>
      <d2p1:level>7</d2p1:level>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:noGetImgUrl>sample string 5</d2p1:noGetImgUrl>
      <d2p1:type>6</d2p1:type>
    </d2p1:Medal>
  </medals>
</GetUserMedalsRes>