Skip to content

Commit

Permalink
add delete_blood_pressure
Browse files Browse the repository at this point in the history
  • Loading branch information
bugficks committed Oct 31, 2024
1 parent e74e1d6 commit 988e307
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions garminconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,18 @@ def get_blood_pressure(

return self.connectapi(url, params=params)

def delete_blood_pressure(self, version: str, cdate: str):
"""Delete specific blood pressure measurement."""
url = f"{self.garmin_connect_set_blood_pressure_endpoint}/{cdate}/{version}"
logger.debug("Deleting blood pressure measurement")

return self.garth.request(
"DELETE",
"connectapi",
url,
api=True,
)

def get_max_metrics(self, cdate: str) -> Dict[str, Any]:
"""Return available max metric data for 'cdate' format 'YYYY-MM-DD'."""

Expand Down

0 comments on commit 988e307

Please sign in to comment.