public async Task updateOrdersTableAsync(bool print = true) { try { rest = new WooCommerceNET.RestAPI(Properties.Settings.Default.restAPIURL, Properties.Settings.Default.restAPIKey, Properties.Settings.Default.restAPISecret); wc = new WCObject(rest); orders = await getOrders(wc, print); displayOrders(orders); } catch (Exception e) { printErrorMessage(e.Message + "\n\nPREVERI!!!\nTiskanje spletnih naročil mogoče ne deluje"); } }
public WoocommerceService() { WooCommerceNET.RestAPI rest = new WooCommerceNET.RestAPI(Statics.WooApi, Statics.ConsumerKey, Statics.ConsumerSecret); wc = new WooCommerceNET.WooCommerce.v2.WCObject(rest); }