mirror of
https://github.com/sstent/go-garth.git
synced 2026-01-25 16:42:28 +00:00
194 lines
7.8 KiB
YAML
194 lines
7.8 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- python-requests/2.31.0
|
|
method: GET
|
|
uri: https://thegarth.s3.amazonaws.com/oauth_consumer.json
|
|
response:
|
|
body:
|
|
string: '{"consumer_key": "SANITIZED", "consumer_secret": "SANITIZED"}'
|
|
headers:
|
|
Accept-Ranges:
|
|
- bytes
|
|
Content-Length:
|
|
- '124'
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Sun, 06 Aug 2023 14:28:00 GMT
|
|
ETag:
|
|
- '"20240b1013cb35419bb5b2cff1407a4e"'
|
|
Last-Modified:
|
|
- Thu, 03 Aug 2023 00:16:11 GMT
|
|
Server:
|
|
- AmazonS3
|
|
x-amz-id-2:
|
|
- 9tePW1jJAYQ3uv6MTzPUchn0ZP+JWMF2a9Zc1mB8quIAtuIxVG/I/LUQHhTiZgd8wChW+eR2PA1ATnw0Tkjldw==
|
|
x-amz-request-id:
|
|
- 07RRD5QKQXX1GET8
|
|
x-amz-server-side-encryption:
|
|
- AES256
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: mfa_token=MFA-1578-9cKDf5iVPDPdBpT3HZtpEhyIZ4Bmger7gIpit5siAlFPGPrVJk-cas
|
|
headers:
|
|
Accept:
|
|
- !!binary |
|
|
Ki8q
|
|
Accept-Encoding:
|
|
- !!binary |
|
|
Z3ppcCwgZGVmbGF0ZQ==
|
|
Authorization:
|
|
- Bearer SANITIZED
|
|
Connection:
|
|
- !!binary |
|
|
a2VlcC1hbGl2ZQ==
|
|
Content-Length:
|
|
- '73'
|
|
Content-Type:
|
|
- !!binary |
|
|
YXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVk
|
|
User-Agent:
|
|
- !!binary |
|
|
Y29tLmdhcm1pbi5hbmRyb2lkLmFwcHMuY29ubmVjdG1vYmlsZQ==
|
|
method: POST
|
|
uri: https://connectapi.garmin.com/oauth-service/oauth/exchange/user/2.0
|
|
response:
|
|
body:
|
|
string: '{"scope": "COMMUNITY_COURSE_READ GARMINPAY_WRITE GOLF_API_READ ATP_READ
|
|
GHS_SAMD GHS_UPLOAD INSIGHTS_READ COMMUNITY_COURSE_WRITE CONNECT_WRITE GCOFFER_WRITE
|
|
GARMINPAY_READ DT_CLIENT_ANALYTICS_WRITE GOLF_API_WRITE INSIGHTS_WRITE PRODUCT_SEARCH_READ
|
|
GCOFFER_READ CONNECT_READ ATP_WRITE", "jti": "SANITIZED", "access_token":
|
|
"SANITIZED", "token_type": "Bearer", "refresh_token": "SANITIZED", "expires_in":
|
|
65481, "refresh_token_expires_in": 2591999}'
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 7f27f6bfcef57ea5-LAX
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Sun, 06 Aug 2023 14:28:01 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=1gipzcbhAhY0bP2r3RhDsanmOc8Hzo0tPhViR5ht3fD6bJu%2B7FT8M8H333APSe3wQ4WHJUwlX3xu0DvvdK3SbcTDTNWWEf3aMp1wQ0D7llAZ3%2Bjbf1ZBEE53kH2xR%2BCpZRg%2FQwx9fg%3D%3D"}],"group":"cf-nel","max_age":604800}'
|
|
Server:
|
|
- cloudflare
|
|
Set-Cookie:
|
|
- _cfuvid=SANITIZED; path=SANITIZED; domain=SANITIZED; HttpOnly; Secure; SameSite=SANITIZED
|
|
Transfer-Encoding:
|
|
- chunked
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cache-control:
|
|
- no-cache, no-store, private
|
|
pragma:
|
|
- no-cache
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- 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:
|
|
- 7f27f6cc6d8ecfb4-SJC
|
|
Connection:
|
|
- keep-alive
|
|
Content-Type:
|
|
- application/json;charset=UTF-8
|
|
Date:
|
|
- Sun, 06 Aug 2023 14:28: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=vQb1I7nl3NUQFoAFFYc8Ez1h%2Br4sa%2FdhPV%2FmnWwcDKVnx9u5zcZbfNerjOwsMYYxfu60yEfBHhJjfrZuTtiFPW6oJF0TsOcft20SZ2E4CrbOEPJuYqkHg05AR%2BKaWXab1WNJ3csk9Q%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
|
|
version: 1
|