From 76b5ee317158839c26b4babb2f63eb78a163c0f7 Mon Sep 17 00:00:00 2001 From: Ron Klinkien Date: Tue, 18 May 2021 16:20:17 +0200 Subject: [PATCH] Fixed missing get call --- garminconnect/__init__.py | 3 +++ garminconnect/__version__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/garminconnect/__init__.py b/garminconnect/__init__.py index be2cc78..d52bc7b 100755 --- a/garminconnect/__init__.py +++ b/garminconnect/__init__.py @@ -107,6 +107,9 @@ def login(self): self.logger.debug( "Login to Garmin Connect using POST url %s", SIGNIN_URL) try: + response = self.req.get( + SIGNIN_URL, headers=self.headers, params=params) + response = self.req.post( SIGNIN_URL, headers=self.headers, params=params, data=data) if response.status_code == 429: diff --git a/garminconnect/__version__.py b/garminconnect/__version__.py index 3319785..85c26ea 100644 --- a/garminconnect/__version__.py +++ b/garminconnect/__version__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- """Python 3 API wrapper for Garmin Connect to get your statistics.""" -__version__ = "0.1.20" +__version__ = "0.1.21"