mirror of
https://github.com/sstent/go-garminconnect.git
synced 2026-01-26 09:01:38 +00:00
147 lines
6.2 KiB
YAML
147 lines
6.2 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer SANITIZED
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15
|
|
(KHTML, like Gecko) Mobile/15E148
|
|
method: GET
|
|
uri: https://connectapi.garmin.com/userprofile-service/userprofile/user-settings
|
|
response:
|
|
body:
|
|
string: '{"id": 2591602, "userData": {"gender": "MALE", "weight": 79800.0, "height":
|
|
182.0, "timeFormat": "time_twenty_four_hr", "birthDate": "1984-10-17", "measurementSystem":
|
|
"metric", "activityLevel": null, "handedness": "RIGHT", "powerFormat": {"formatId":
|
|
30, "formatKey": "watt", "minFraction": 0, "maxFraction": 0, "groupingUsed":
|
|
true, "displayFormat": null}, "heartRateFormat": {"formatId": 21, "formatKey":
|
|
"bpm", "minFraction": 0, "maxFraction": 0, "groupingUsed": false, "displayFormat":
|
|
null}, "firstDayOfWeek": {"dayId": 2, "dayName": "sunday", "sortOrder": 2,
|
|
"isPossibleFirstDay": true}, "vo2MaxRunning": 46.0, "vo2MaxCycling": null,
|
|
"lactateThresholdSpeed": 0.34722125000000004, "lactateThresholdHeartRate":
|
|
null, "diveNumber": null, "intensityMinutesCalcMethod": "AUTO", "moderateIntensityMinutesHrZone":
|
|
3, "vigorousIntensityMinutesHrZone": 4, "hydrationMeasurementUnit": "milliliter",
|
|
"hydrationContainers": [], "hydrationAutoGoalEnabled": true, "firstbeatMaxStressScore":
|
|
null, "firstbeatCyclingLtTimestamp": null, "firstbeatRunningLtTimestamp":
|
|
1044719868, "thresholdHeartRateAutoDetected": true, "ftpAutoDetected": null,
|
|
"trainingStatusPausedDate": null, "weatherLocation": {"useFixedLocation":
|
|
false, "latitude": null, "longitude": null, "locationName": null, "isoCountryCode":
|
|
null, "postalCode": null}, "golfDistanceUnit": "statute_us", "golfElevationUnit":
|
|
null, "golfSpeedUnit": null, "externalBottomTime": null}, "userSleep": {"sleepTime":
|
|
80400, "defaultSleepTime": false, "wakeTime": 24000, "defaultWakeTime": false},
|
|
"connectDate": null, "sourceType": null}'
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 7f8a7b014d17b6e2-QRO
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json;charset=UTF-8
|
|
Date:
|
|
- Fri, 18 Aug 2023 13:25:02 GMT
|
|
NEL:
|
|
- '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}'
|
|
Report-To:
|
|
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=5fw6qcq0NdNdbleOS%2BWsMpFjTu6%2BU2E7IbbvmX8RF38%2Fitx8T5Eai8xRMWKiC%2F728gP0zlJeNtiIprepe9WLjNWkKmBb4g%2F2KiF7%2FRzTL3epslvndR22jovxvhF7Y5HZXsL%2Fzw4pRA%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cache-control:
|
|
- no-cache, no-store, private
|
|
pragma:
|
|
- no-cache
|
|
set-cookie:
|
|
- ADRUM_BTa=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- ADRUM_BTa=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- SameSite=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- _cfuvid=SANITIZED; path=SANITIZED; domain=SANITIZED; HttpOnly; Secure; SameSite=SANITIZED
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer SANITIZED
|
|
Connection:
|
|
- keep-alive
|
|
Cookie:
|
|
- _cfuvid=SANITIZED; ADRUM_BT1=SANITIZED; ADRUM_BTa=SANITIZED; SameSite=SANITIZED
|
|
User-Agent:
|
|
- Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15
|
|
(KHTML, like Gecko) Mobile/15E148
|
|
method: GET
|
|
uri: https://connectapi.garmin.com/wellness-service/wellness/bodyBattery/reports/daily?startDate=2023-07-01&endDate=2023-07-01
|
|
response:
|
|
body:
|
|
string: '[{"date": "2023-07-01", "charged": 43, "drained": 43, "startTimestampGMT":
|
|
"2023-07-01T06:00:00.0", "endTimestampGMT": "2023-07-02T06:00:00.0", "startTimestampLocal":
|
|
"2023-07-01T00:00:00.0", "endTimestampLocal": "2023-07-02T00:00:00.0", "bodyBatteryValuesArray":
|
|
[[1688191200000, 5], [1688214060000, 48], [1688220000000, 41], [1688248260000,
|
|
23], [1688248800000, 23], [1688269140000, 5]], "bodyBatteryValueDescriptorDTOList":
|
|
[{"bodyBatteryValueDescriptorIndex": 0, "bodyBatteryValueDescriptorKey": "timestamp"},
|
|
{"bodyBatteryValueDescriptorIndex": 1, "bodyBatteryValueDescriptorKey": "bodyBatteryLevel"}]}]'
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 7f8a7b0288481549-QRO
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json;charset=UTF-8
|
|
Date:
|
|
- Fri, 18 Aug 2023 13:25:02 GMT
|
|
NEL:
|
|
- '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}'
|
|
Report-To:
|
|
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=vuNozV%2Btdqrb2pnWC8vZa8XsRe8ATc8162AEj6jyD7wtVGJRTuI3LHxioV%2BMV%2FGZ%2BwoicMvVtiKVYZl2xLmGkhhuglHn0eUgQ7TtGcBIOHDPqxdHxwMC%2BbkPjL6ZgxgExIOyFPSPqQ%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cache-control:
|
|
- no-cache, no-store, private
|
|
pragma:
|
|
- no-cache
|
|
set-cookie:
|
|
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- ADRUM_BTa=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- ADRUM_BTa=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- ADRUM_BTa=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
- SameSite=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
|
|
Secure
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|