WooCommerceAPI constructor
WooCommerceAPI({})
Implementation
WooCommerceAPI({
required this.url,
required this.consumerKey,
required this.consumerSecret,
}) {
this.url = url;
this.consumerKey = consumerKey;
this.consumerSecret = consumerSecret;
if (this.url.startsWith("https")) {
this.isHttps = true;
} else {
this.isHttps = false;
}
}