OAuth constructor
Constructor
Implementation
OAuth(
{this.clientId,
this.clientSecret,
required this.tokenUrl,
this.accessToken}) {
if (!((clientId != null && clientSecret != null) || accessToken != null)) {
throw ApiException(
0, "clientId and clientSecret or accessToken required");
}
}