IHealthService class

The IHealthService class provides methods for authenticating a user, retrieving blood pressure, weight, and heart rate data from the iHealth API.

Constructors

IHealthService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

authorize({required IHealthAuthUrl authUrl, required String redirectScheme}) Future<IHealthCredential>
The authorize function in Dart is used to authenticate a user using a provided authentication URL and redirect scheme, and returns an IHealthCredential object.
getBpByUserId({required IHealthDataUrl iHealthBpUrl, required int pageIndex}) Future<IHealthBpResponse>
The function getBpByUserId makes a POST request to a specified URL and returns a response containing blood pressure data.
getHeartRateByUserId({required IHealthDataUrl iHealthHRtUrl, required int pageIndex}) Future<IHealthHeartRateResponse>
The function getHeartRateByUserId makes a POST request to a specified URL and returns a response containing heart rate data.
getWeightByUserId({required IHealthDataUrl iHealthWeightUrl, required int pageIndex}) Future<IHealthWeightResponse>
The function getWeightByUserId retrieves weight data for a user based on their ID using a POST request.
refreshToken({required IHealthAuthUrl iHealthAuthUrl, required String refreshToken}) Future<IHealthCredential>