POST api/Dance/GetStep

Obtain friend step account

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

0:success
1100:device does not exist
3000:no data

StepCounterResult
NameDescriptionTypeAdditional information
item

collection

Collection of StepCounter

None.

IMEI

IMEI NUMBER

string

None.

NickName

Nick name

string

None.

ImgUrl

head portrait address

string

None.

Steps

Step counts

integer

None.

No

ranking

integer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "item": [
    {
      "IMEI": "sample string 1",
      "NickName": "sample string 2",
      "ImgUrl": "sample string 3",
      "Steps": 4
    },
    {
      "IMEI": "sample string 1",
      "NickName": "sample string 2",
      "ImgUrl": "sample string 3",
      "Steps": 4
    }
  ],
  "IMEI": "sample string 1",
  "NickName": "sample string 2",
  "ImgUrl": "sample string 3",
  "Steps": 4,
  "No": 5,
  "State": 6
}

application/xml, text/xml

Sample:
<StepCounterResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>6</State>
  <IMEI>sample string 1</IMEI>
  <ImgUrl>sample string 3</ImgUrl>
  <NickName>sample string 2</NickName>
  <No>5</No>
  <Steps>4</Steps>
  <item>
    <StepCounter>
      <IMEI>sample string 1</IMEI>
      <ImgUrl>sample string 3</ImgUrl>
      <NickName>sample string 2</NickName>
      <Steps>4</Steps>
    </StepCounter>
    <StepCounter>
      <IMEI>sample string 1</IMEI>
      <ImgUrl>sample string 3</ImgUrl>
      <NickName>sample string 2</NickName>
      <Steps>4</Steps>
    </StepCounter>
  </item>
</StepCounterResult>