FitbitAuthAPIURL class
FitbitAuthAPIURL is a class that expresses multiple factory constructors to be used to generate Fitbit Web APIs urls to be used by FitbitConnector.
- Inheritance
-
- Object
- FitbitAPIURL
- FitbitAuthAPIURL
Constructors
- FitbitAuthAPIURL({required String url, required FitbitCredentials? fitbitCredentials, required String? data, required String? authorizationHeader})
- Default FitbitAuthAPIURL constructor.
-
Factory constructor that generates a FitbitAuthAPIURL to be used
to get the access and refresh tokens.
factory
-
Factory constructor that generates a FitbitAuthAPIURL to be used
to get to the fitbit authorization form.
factory
- FitbitAuthAPIURL.isTokenValid({required String fitbitAccessToken})
-
Factory constructor that generates a FitbitAuthAPIURL to be used
to get the validity of the access and refresh tokens.
factory
- FitbitAuthAPIURL.refreshToken({required FitbitCredentials fitbitCredentials, required String clientID, required String clientSecret})
-
Factory constructor that generates a FitbitAuthAPIURL to be used
to refresh the access token.
factory
-
Factory constructor that generates a FitbitAuthAPIURL to be used
to revoke the access and refresh tokens.
factory
Properties
-
The authorization header of the url.
getter/setter pair
- data ↔ String?
-
The data to be attached to the url.
getter/setter pair
- fitbitCredentials ↔ FitbitCredentials?
-
The FitbitCredentials of the user requesting for the data.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String
-
The string representation of the url.
getter/setter pairinherited
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