Enzona constructor
Enzona({})
Implementation
Enzona({
required this.apiUrl,
String? accessTokenUrl,
required this.consumerKey,
required this.consumerSecret,
required this.scopes,
this.timeout,
HttpClient? httpClient,
}) :
accessTokenUrl = accessTokenUrl ?? '$apiUrl/token',
httpClient = PlatformUtils.isWeb ? null : (httpClient ?? (HttpClient()..badCertificateCallback =
(X509Certificate cert, String host, int port) =>
host == 'apisandbox.enzona.net' || host == 'api.enzona.net'));