POST api/Health/GetStepsForHour

计算某天每小时的步数值 [手表]

Request Information

Body Parameters

请求参数

GetStepsForHourModel
NameDescriptionTypeAdditional information
Imei

IMEI

string

None.

Date

日期

date

None.

TimeOffset

手机时区

decimal number

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Imei": "sample string 1",
  "Date": "2025-12-12T05:26:15.4778539+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>2025-12-12T05:26:15.4778539+08:00</Date>
  <Imei>sample string 1</Imei>
  <TimeOffset>3.1</TimeOffset>
</GetStepsForHourModel>

Response Information

Resource Description

State状态码
0. 表示成功GetStepsForHourResult

GetStepsForHourResult
NameDescriptionTypeAdditional information
Items

步数列表

Collection of HourSteps

None.

Step

总步数

integer

None.

Distance

路程

decimal number

None.

Cariello

卡路里

decimal number

None.

State

状态码

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>