Files
go-garminconnect/python-garminconnect/tests/cassettes/test_hydration_data.yaml
2025-08-26 19:33:02 -07:00

241 lines
11 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/socialProfile
response:
body:
string: '{"id": 3154645, "profileId": 2591602, "garminGUID": "0690cc1d-d23d-4412-b027-80fd4ed1c0f6",
"displayName": "mtamizi", "fullName": "Matin Tamizi", "userName": "mtamizi",
"profileImageUuid": "73240e81-6e4d-43fc-8af8-c8f6c51b3b8f", "profileImageUrlLarge":
"https://s3.amazonaws.com/garmin-connect-prod/profile_images/73240e81-6e4d-43fc-8af8-c8f6c51b3b8f-2591602.png",
"profileImageUrlMedium": "https://s3.amazonaws.com/garmin-connect-prod/profile_images/685a19e9-a7be-4a11-9bf9-faca0c5d1f1a-2591602.png",
"profileImageUrlSmall": "https://s3.amazonaws.com/garmin-connect-prod/profile_images/6302f021-0ec7-4dc9-b0c3-d5a19bc5a08c-2591602.png",
"location": "Ciudad de M\u00e9xico, CDMX", "facebookUrl": null, "twitterUrl":
null, "personalWebsite": null, "motivation": null, "bio": null, "primaryActivity":
null, "favoriteActivityTypes": [], "runningTrainingSpeed": 0.0, "cyclingTrainingSpeed":
0.0, "favoriteCyclingActivityTypes": [], "cyclingClassification": null, "cyclingMaxAvgPower":
0.0, "swimmingTrainingSpeed": 0.0, "profileVisibility": "private", "activityStartVisibility":
"private", "activityMapVisibility": "public", "courseVisibility": "public",
"activityHeartRateVisibility": "public", "activityPowerVisibility": "public",
"badgeVisibility": "private", "showAge": false, "showWeight": false, "showHeight":
false, "showWeightClass": false, "showAgeRange": false, "showGender": false,
"showActivityClass": false, "showVO2Max": false, "showPersonalRecords": false,
"showLast12Months": false, "showLifetimeTotals": false, "showUpcomingEvents":
false, "showRecentFavorites": false, "showRecentDevice": false, "showRecentGear":
false, "showBadges": true, "otherActivity": null, "otherPrimaryActivity":
null, "otherMotivation": null, "userRoles": ["SCOPE_ATP_READ", "SCOPE_ATP_WRITE",
"SCOPE_COMMUNITY_COURSE_READ", "SCOPE_COMMUNITY_COURSE_WRITE", "SCOPE_CONNECT_READ",
"SCOPE_CONNECT_WRITE", "SCOPE_DT_CLIENT_ANALYTICS_WRITE", "SCOPE_GARMINPAY_READ",
"SCOPE_GARMINPAY_WRITE", "SCOPE_GCOFFER_READ", "SCOPE_GCOFFER_WRITE", "SCOPE_GHS_SAMD",
"SCOPE_GHS_UPLOAD", "SCOPE_GOLF_API_READ", "SCOPE_GOLF_API_WRITE", "SCOPE_INSIGHTS_READ",
"SCOPE_INSIGHTS_WRITE", "SCOPE_PRODUCT_SEARCH_READ", "ROLE_CONNECTUSER", "ROLE_FITNESS_USER",
"ROLE_WELLNESS_USER", "ROLE_OUTDOOR_USER", "ROLE_CONNECT_2_USER", "ROLE_TACX_APP_USER"],
"nameApproved": true, "userProfileFullName": "Matin Tamizi", "makeGolfScorecardsPrivate":
true, "allowGolfLiveScoring": false, "allowGolfScoringByConnections": true,
"userLevel": 3, "userPoint": 117, "levelUpdateDate": "2020-12-12T15:20:38.0",
"levelIsViewed": false, "levelPointThreshold": 140, "userPointOffset": 0,
"userPro": false}'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7f967101d861154b-QRO
Connection:
- keep-alive
Content-Type:
- application/json;charset=UTF-8
Date:
- Sun, 20 Aug 2023 00:15:22 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=463w%2FuByRoJKGUmocUIzMvqYeScq0aei%2FT%2Bd3Ggsl8BMIlsKs%2BrGflSDcKjqo8BYotrFMwj6emCZ2IQ1MjkbQJMEy0l%2FRVf%2By7eQougtqIicbH9d%2Fds9HGH35hYJTPLg7cTEndSWFA%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/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:
- 7f9671031c331547-QRO
Connection:
- keep-alive
Content-Type:
- application/json;charset=UTF-8
Date:
- Sun, 20 Aug 2023 00:15:22 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=zqBSaLvwHc8CP3rS73t37hqtQPhwoJiQ0NDoQe7uMlDezK8fIqj%2BcDNd1ZkQqcC4SlQoImjwIkDRFK4oMCblXf4iKPgV%2FOQAV%2B8VNUSKzSyYQpQKsYKaAj6bjAt2Z1QYlwA%2Fhx6Rmw%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
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
Secure
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
Secure
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/usersummary-service/usersummary/hydration/daily/2023-07-01
response:
body:
string: '{"userId": 2591602, "calendarDate": "2023-07-01", "valueInML": null,
"goalInML": 2800.0, "dailyAverageinML": null, "lastEntryTimestampLocal": null,
"sweatLossInML": null, "activityIntakeInML": null}'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7f967106dca5155f-QRO
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Sun, 20 Aug 2023 00:15:22 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=W0QFlPjJmMM%2FvZq47%2BpTK9Yu5mIQ0I88klxliwZmKHkGuibvBDOrovy8V8nfsoDWZroCHXBDJDD1lxuHapbfEtJetCyAPC1LzvaG3ETD3qjhCrvZjF7x%2F88teqWDnR%2F24les6bZuJA%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
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
Secure
- ADRUM_BT1=SANITIZED; Max-Age=SANITIZED; Expires=SANITIZED; Path=SANITIZED;
Secure
status:
code: 200
message: OK
version: 1