Enzona class

CORS configurations from API prevents requests from unauthorized web clients

Implementers

Constructors

Enzona({required String apiUrl, String? accessTokenUrl, required String consumerKey, required String consumerSecret, required List<String> scopes, Duration? timeout, HttpClient? httpClient})

Properties

accessTokenUrl String
final
apiUrl String
final
consumerKey String
final
consumerSecret String
final
credentials → Credentials
no setter
hashCode int
The hash code for this object.
no setterinherited
httpClient HttpClient?
Set this if you need control over http requests like validating certificates and so. Not supported in Web
final
isInitialized bool
no setter
oauth2Client ↔ CustomOauth2Client
OAuth2 Client for authorization API requests
latefinal
paymentAPI ↔ PaymentAPI<dynamic, Jsonable<Object>>
Enzona Payment API
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
final
timeout Duration?
final

Methods

init() Future<void>
Call this function before using Enzona APIs
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshCredentials() Future<Credentials>
toString() String
A string representation of this object.
inherited

Operators

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