public static void Main()
Console.WriteLine("Start ...");
HttpResponse<RootObject> response = Unirest.post("https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/v1.0")
.header("X-RapidAPI-Host", "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "78e0c3750fmshf3e69e9f2e6583cp1bfb84jsnbbdf7bb808a5")
.header("Content-Type", "application/x-www-form-urlencoded")
.field("inboundDate", "2019-09-10")
.field("cabinClass", "business")
.field("currency", "USD")
.field("locale", "en-US")
.field("originPlace", "SFO-sky")
.field("destinationPlace", "LHR-sky")
.field("outboundDate", "2019-09-01")
Console.WriteLine(response.Code);
if (response.Code == 200)
var result = response.Body;
Console.WriteLine(result);
Console.WriteLine("End ....");
public string message { get; set; }