POST api/Health/GetStepsForHour

Calculate per hour one day step numerical [watch]

Request Information

Body Parameters

required parameter

GetStepsForHourModel
NameDescriptionTypeAdditional information
Imei

IMEI

string

None.

Date

date

date

None.

TimeOffset

cell phonetime zone

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",
  "Date": "2018-10-24T11:20:17.7066534+08:00",
  "TimeOffset": 3.1,
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

Sample:
<GetStepsForHourModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 6</AppId>
  <Language>sample string 5</Language>
  <Token>sample string 4</Token>
  <Date>2018-10-24T11:20:17.7066534+08:00</Date>
  <Imei>sample string 1</Imei>
  <TimeOffset>3.1</TimeOffset>
</GetStepsForHourModel>

Response Information

Resource Description

Statestatus code
0. Indicates successGetStepsForHourResult

GetStepsForHourResult
NameDescriptionTypeAdditional information
Items

Step count list

Collection of HourSteps

None.

Step

Total step count

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": [
    {
      "Hour": "sample string 1",
      "Steps": 2,
      "Distance": 3.0,
      "Cariello": 4.0
    },
    {
      "Hour": "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:
<GetStepsForHourResult 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>
    <HourSteps>
      <Cariello>4</Cariello>
      <Distance>3</Distance>
      <Hour>sample string 1</Hour>
      <Steps>2</Steps>
    </HourSteps>
    <HourSteps>
      <Cariello>4</Cariello>
      <Distance>3</Distance>
      <Hour>sample string 1</Hour>
      <Steps>2</Steps>
    </HourSteps>
  </Items>
  <Step>1</Step>
</GetStepsForHourResult>