static void Main(string[] args) { int Product_Updates = 0; int Product_Create = 0; int Product_OutOfStock = 0; try { List<Product> product = new List<Product>(); ShopifyAPI shopfiyAPI = new ShopifyAPI(); Simple_Feed feed = new Simple_Feed(shopfiyAPI,System.Configuration.ConfigurationManager.AppSettings["Source_CSV_Location"]); bool ok = feed.Run(); if (ok) { product.AddRange(product); Product_Create = feed.Product_Create; Product_Updates = feed.Product_Updates; Product_OutOfStock = feed.Product_OutStock; } } catch (Exception ex) { Error(ex); } Console.WriteLine("Product Updates: " + Product_Updates); Console.WriteLine("Product Create: " + Product_Create); Console.WriteLine("Product Out of Stock: " + Product_OutOfStock); Console.WriteLine("Done - " + DateTime.Now.ToLongTimeString()); }
public Simple_Feed(ShopifyAPI _shopifyAPI, string _download_location) : base(_shopifyAPI, _download_location) { }
public Simple_Feed(ShopifyAPI _shopifyAPI) : base(_shopifyAPI) { }
public FeedBase(ShopifyAPI _shopifyAPI) { shopifyAPI = _shopifyAPI; download_location = ""; }
public FeedBase(ShopifyAPI _shopifyAPI, string _download_location) { shopifyAPI = _shopifyAPI; download_location = _download_location; }