using System.Collections.Generic;
using System.Threading.Tasks;
using System.Net.Http.Headers;
public static void Main()
HttpClient client = new HttpClient();
client.BaseAddress = new Uri("http://staging-pg.getwaave.co/3dcart/initiate-checkout");
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage response = client.GetAsync("api/Values").Result;
if (response.IsSuccessStatusCode)
var products = response.Content.ReadAsStringAsync().Result;
Console.WriteLine("{0} ({1}))", response.StatusCode , response.Content);
Console.WriteLine("{0} ({1})", (int)response.StatusCode, response.ReasonPhrase);