Could someone please help me modify the code below:
client.ExecuteAsync(request, response => { Console.WriteLine(response.Content); });
From reading the code it looks like you want to use ExecuteAsGet or ExecuteAsPost instead of the async implementation.
ExecuteAsGet
ExecuteAsPost
Or maybe just Execute- not sure exactly what type Client is.