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

Constructors

FitbitAuthAPIURL({required String url, required FitbitCredentials? fitbitCredentials, required String? data, required String? authorizationHeader})
Default FitbitAuthAPIURL constructor.
FitbitAuthAPIURL.authorize({required String redirectUri, String? code, String? clientID, String? clientSecret})
Factory constructor that generates a FitbitAuthAPIURL to be used to get the access and refresh tokens.
factory
FitbitAuthAPIURL.authorizeForm({required String redirectUri, required List<FitbitAuthScope> scopeList, required int expiresIn, String? clientID})
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
FitbitAuthAPIURL.unauthorize({String? clientID, String? clientSecret, required String fitbitAccessToken})
Factory constructor that generates a FitbitAuthAPIURL to be used to revoke the access and refresh tokens.
factory

Properties

authorizationHeader String?
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