Fetch
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
-
userid string
The user id obtained from /api/login
-
queries array[string]
Queries to use to filter the data. See https://github.com/CoolCoderSJ/HCGateway#rest-api for more information.
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"
}