POST api/Health/GetStepsForDay

Calculate the number of steps per day for a period of time [watch]

Request Information

Body Parameters

GetStepsForDayModel
NameDescriptionTypeAdditional information
Imei

device imei

string

None.

StartDate

starting date cell phonetime zone date

date

None.

EndDate

starting date cell phonetime zone date

date

None.

TimeOffset

with UTC0 time zone difference

decimal number

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:
{
  "Imei": "sample string 1",
  "StartDate": "2018-10-19T14:44:51.2828958+08:00",
  "EndDate": "2018-10-19T14:44:51.2828958+08:00",
  "TimeOffset": 4.1,
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<GetStepsForDayModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <EndDate>2018-10-19T14:44:51.2828958+08:00</EndDate>
  <Imei>sample string 1</Imei>
  <StartDate>2018-10-19T14:44:51.2828958+08:00</StartDate>
  <TimeOffset>4.1</TimeOffset>
</GetStepsForDayModel>

Response Information

Resource Description

State status code
0. Indicates success

GetStepsForDayResult
NameDescriptionTypeAdditional information
Items

Every day steps of collection

Collection of DaySteps

None.

Step

Total steps

integer

None.

Distance

journey

decimal number

None.

Cariello

calorie

decimal number

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Date": "sample string 1",
      "Steps": 2,
      "Distance": 3.0,
      "Cariello": 4.0
    },
    {
      "Date": "sample string 1",
      "Steps": 2,
      "Distance": 3.0,
      "Cariello": 4.0
    }
  ],
  "Step": 1,
  "Distance": 2.0,
  "Cariello": 3.0,
  "State": 4
}

application/xml, text/xml

Sample:
<GetStepsForDayResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>4</State>
  <Cariello>3</Cariello>
  <Distance>2</Distance>
  <Items>
    <DaySteps>
      <Cariello>4</Cariello>
      <Date>sample string 1</Date>
      <Distance>3</Distance>
      <Steps>2</Steps>
    </DaySteps>
    <DaySteps>
      <Cariello>4</Cariello>
      <Date>sample string 1</Date>
      <Distance>3</Distance>
      <Steps>2</Steps>
    </DaySteps>
  </Items>
  <Step>1</Step>
</GetStepsForDayResult>