public static IEnumerable SW_GetOrderItems(string ShipwireUsername, string ShipwirePassword, long OrderID) { ShipwireClient sw = new ShipwireClient(ShipwireUsername, ShipwirePassword); return sw.GetOrderItems(OrderID); }
private void GetSW_OrderItems() { sw = new ShipwireClient(_uname, _pwd); List<OrderItem> orders = sw.GetOrderItems(Convert.ToInt64(txtInput.Text)); txtRawData.Clear(); foreach (OrderItem o in orders) { txtRawData.Text += string.Format("ProductID: {0}| Quantity: {1} |SKU: {2}\n", o.productId, o.quantity, o.sku); } }