Fetch

POST /api/fetch/{method}

Path parameters

  • method string Required

    Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes

application/json

Body

Responses

POST /api/fetch/{method}
curl \
 -X POST https://api.hcgateway.shuchir.dev/api/fetch/{method} \
 -H "Content-Type: application/json" \
 -d '{"userid":"string","queries":["string"]}'
Request examples
{
  "userid": "string",
  "queries": [
    "string"
  ]
}
Response examples (200)
{
  "$id": "string",
  "$createdAt": "2024-05-04T09:42:00+00:00",
  "$updatedAt": "2024-05-04T09:42:00+00:00",
  "$permissions": [
    "string"
  ],
  "$databaseId": "string",
  "$collectionId": "string",
  "data": {},
  "id": "string",
  "start": "2024-05-04T09:42:00+00:00",
  "end": "2024-05-04T09:42:00+00:00",
  "app": "string"
}