working
This commit is contained in:
@@ -32,3 +32,11 @@ class GarminClient(AuthMixin, DataMixin):
|
||||
except:
|
||||
self.is_connected = False
|
||||
return False
|
||||
|
||||
def get_profile_info(self):
|
||||
"""Get user profile information."""
|
||||
if not self.is_connected:
|
||||
self.login()
|
||||
if self.is_connected:
|
||||
return garth.UserProfile.get()
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user