public static IEnumerable Shop_GetProductVariants(string StoreName, string APIKey, string Password, long ProductID) { ShopifyClient sp = new ShopifyClient(StoreName, APIKey, Password); return sp.GetProductVariants(ProductID); }
private void GetProductVariants(int ProductID) { sp = new ShopifyClient(_storename, _apikey, _password); List<SIVariant> vars = sp.GetProductVariants(ProductID); txtRawData_Copy.Clear(); foreach(SIVariant v in vars) { txtRawData_Copy.Text = String.Format("ID: {0}| Price: {1:C}| Qty: {2}", v.id, v.price, v.inventory_quantity); } }