POST api/Dance/Ranking

ranking

Request Information

Body Parameters

DanceInfoModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Type

Type 1 Last ranking 2: this week's ranking

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Type": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<DanceInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <DeviceId>1</DeviceId>
  <Type>2</Type>
</DanceInfoModel>

Response Information

Resource Description

DanceStateResult
NameDescriptionTypeAdditional information
item

Collection of DancevRanking

None.

IsAdmin

Whether or not the leader

boolean

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "item": [
    {
      "Percentage": "sample string 1",
      "NickName": "sample string 2",
      "ImgUrl": "sample string 3",
      "IMEI": "sample string 4",
      "identity": "sample string 5"
    },
    {
      "Percentage": "sample string 1",
      "NickName": "sample string 2",
      "ImgUrl": "sample string 3",
      "IMEI": "sample string 4",
      "identity": "sample string 5"
    }
  ],
  "IsAdmin": true,
  "State": 2
}

application/xml, text/xml

Sample:
<DanceStateResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <IsAdmin>true</IsAdmin>
  <item>
    <DancevRanking>
      <IMEI>sample string 4</IMEI>
      <ImgUrl>sample string 3</ImgUrl>
      <NickName>sample string 2</NickName>
      <Percentage>sample string 1</Percentage>
      <identity>sample string 5</identity>
    </DancevRanking>
    <DancevRanking>
      <IMEI>sample string 4</IMEI>
      <ImgUrl>sample string 3</ImgUrl>
      <NickName>sample string 2</NickName>
      <Percentage>sample string 1</Percentage>
      <identity>sample string 5</identity>
    </DancevRanking>
  </item>
</DanceStateResult>