Exemple #1
0
        static void Main(string[] args)
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            Console.WriteLine("Enter your postcode:");
            var           postcode = Console.ReadLine();
            List <string> busInfo  = ApiCaller.GetBusInfoPostcode(postcode);

            foreach (string line in busInfo)
            {
                Console.WriteLine(line);
            }
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }