Path parameters
-
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
Body
-
queries object | null
Queries to use to filter the data. Must be a valid mongodb query. See https://www.mongodb.com/docs/languages/python/pymongo-driver/current/read/specify-a-query/ for more information.
Additional properties are allowed.
POST /api/v2/fetch/{method}
curl \
-X POST https://api.hcgateway.shuchir.dev/api/v2/fetch/{method} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries":{}}'
Request examples
{
"queries": {}
}
Response examples (200)
{
"_id": "string",
"data": {},
"id": "string",
"start": "2024-05-04T09:42:00+00:00",
"end": "2024-05-04T09:42:00+00:00",
"app": "string"
}