static int Main(string[] args) { var connection = new GraphConnection(); if (args.Length < 1) { PrintUsage(); return(1); } string responseContent; try { responseContent = connection.InvokeRequestAndDeserialize(args[0]); } catch (GraphHttpException exception) { Console.Error.WriteLine("Request failed with status code {0}", exception.StatusCode); Console.Error.WriteLine(exception.Message); return(1); } Console.WriteLine(responseContent); return(0); }