-
Notifications
You must be signed in to change notification settings - Fork 2
/
check.sh
executable file
·2 lines (2 loc) · 4.74 KB
/
check.sh
1
2
#!/bin/bash
curl 'https://connect.garmin.com/modern/proxy/course-service/course/' -H 'cookie: SESSION=<session>; pin.m=<pin>;' -H 'accept-language: en-US,en;q=0.8' -H 'nk: NT' -H 'content-type: application/json' -H 'accept: application/json, text/javascript, */*; q=0.01' --data-binary '{"activityTypePk":1,"elevationGainMeter":4.02069091796875,"elevationLossMeter":4.02069091796875,"distanceMeter":1632,"geoPoints":[{"latitude":41.130950000000006,"longitude":-73.39404,"elevation":29,"distance":null},{"latitude":41.13042,"longitude":-73.39369,"elevation":29,"distance":null},{"latitude":41.130230000000005,"longitude":-73.39348000000001,"elevation":29,"distance":null},{"latitude":41.129940000000005,"longitude":-73.39302,"elevation":28,"distance":null},{"latitude":41.130050000000004,"longitude":-73.39288,"elevation":28,"distance":null},{"latitude":41.13045,"longitude":-73.39239,"elevation":29.358713150024414,"distance":null},{"latitude":41.13074,"longitude":-73.39214000000001,"elevation":30.402132034301758,"distance":null},{"latitude":41.13103,"longitude":-73.39177000000001,"elevation":31.411855697631836,"distance":null},{"latitude":41.131220000000006,"longitude":-73.39154,"elevation":32.129173278808594,"distance":null},{"latitude":41.13103,"longitude":-73.39119000000001,"elevation":31.94424819946289,"distance":null},{"latitude":41.13078,"longitude":-73.39079000000001,"elevation":31.48394775390625,"distance":null},{"latitude":41.13049,"longitude":-73.39049,"elevation":30.022560119628906,"distance":null},{"latitude":41.12979,"longitude":-73.39003000000001,"elevation":24.984031677246094,"distance":null},{"latitude":41.129740000000005,"longitude":-73.39038000000001,"elevation":25.195188522338867,"distance":null},{"latitude":41.12968,"longitude":-73.39044000000001,"elevation":24.97930908203125,"distance":null},{"latitude":41.12962,"longitude":-73.3906,"elevation":25.12322998046875,"distance":null},{"latitude":41.12941,"longitude":-73.39091,"elevation":25.11065673828125,"distance":null},{"latitude":41.129020000000004,"longitude":-73.39138000000001,"elevation":24.213571548461914,"distance":null},{"latitude":41.12881,"longitude":-73.39168000000001,"elevation":24,"distance":null},{"latitude":41.128440000000005,"longitude":-73.39206,"elevation":24.63156509399414,"distance":null},{"latitude":41.128130000000006,"longitude":-73.39237,"elevation":24.758296966552734,"distance":null},{"latitude":41.128130000000006,"longitude":-73.39237,"elevation":24.758296966552734,"distance":null},{"latitude":41.12867000000001,"longitude":-73.39184,"elevation":24,"distance":null},{"latitude":41.12881,"longitude":-73.39168000000001,"elevation":24,"distance":null},{"latitude":41.129020000000004,"longitude":-73.39138000000001,"elevation":24.213571548461914,"distance":null},{"latitude":41.12952000000001,"longitude":-73.39076,"elevation":24.97930908203125,"distance":null},{"latitude":41.12968,"longitude":-73.39044000000001,"elevation":24.97930908203125,"distance":null},{"latitude":41.129740000000005,"longitude":-73.39038000000001,"elevation":25.195188522338867,"distance":null},{"latitude":41.12979,"longitude":-73.39003000000001,"elevation":24.984031677246094,"distance":null},{"latitude":41.13049,"longitude":-73.39049,"elevation":30.022560119628906,"distance":null},{"latitude":41.13078,"longitude":-73.39079000000001,"elevation":31.48394775390625,"distance":null},{"latitude":41.13103,"longitude":-73.39119000000001,"elevation":31.94424819946289,"distance":null},{"latitude":41.131220000000006,"longitude":-73.39154,"elevation":32.129173278808594,"distance":null},{"latitude":41.13103,"longitude":-73.39177000000001,"elevation":31.411855697631836,"distance":null},{"latitude":41.13074,"longitude":-73.39214000000001,"elevation":30.402132034301758,"distance":null},{"latitude":41.13045,"longitude":-73.39239,"elevation":29.358713150024414,"distance":null},{"latitude":41.130050000000004,"longitude":-73.39288,"elevation":28,"distance":null},{"latitude":41.129940000000005,"longitude":-73.39302,"elevation":28,"distance":null},{"latitude":41.130230000000005,"longitude":-73.39348000000001,"elevation":29,"distance":null},{"latitude":41.13042,"longitude":-73.39369,"elevation":29,"distance":null},{"latitude":41.130950000000006,"longitude":-73.39405000000001,"elevation":29,"distance":null}],"coursePoints":null,"startPoint":{"latitude":41.130950000000006,"longitude":-73.39404,"elevation":29,"distance":816,"timestamp":null},"boundingBox":{"lowerLeft":{"latitude":41.128130000000006,"longitude":-73.39405000000001},"upperRight":{"latitude":41.131220000000006,"longitude":-73.39003000000001},"lowerLeftLatIsSet":true,"lowerLeftLongIsSet":true,"upperRightLatIsSet":true,"upperRightLongIsSet":true},"courseName":"Untitled","elapsedSeconds":null,"speedMeterPerSecond":null,"openStreetMap":false,"rulePK":2,"sourceTypeId":3}' --compressed