QuickbooksOauth2Service class

Service that provides Oauth2 copnnection to the Quickbooks site.

If you don't provide the needed values, it will take it in your environment variables.

Constructors

QuickbooksOauth2Service({String? clientId, String? clientSecret, String? redirectUrl, bool? isProduction, String? state})
Quickbooks Oauth2 connection service constructor

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

getAuthUrl({List<Oauth2Scopes>? scopes, String? state}) Future<String>
Gets the auth url for a user to connect to your app with Quickbooks. The connection with this url will provide an authorization code to get the Oauth2 tokens.
getBasicToken() String
Returns the basic token of your app
getTokens({required String authorizationCode, String? realmId}) Future<QuickbooksOauth2Tokens>
Gets the QuickbooksOauth2Tokens for a user with his authorizationCode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshTokens({required String refreshToken}) Future<QuickbooksOauth2Tokens>
Refreshes a user's tokens with its refreshToken
toString() String
A string representation of this object.
inherited

Operators

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