Exemplo n.º 1
0
        static IEnumerable <Response> GetLatestResults()
        {
            var loteriasApiConfig = new LoteriasAPIConfig("https://apiloterias.com.br/");
            var accessConfig      = new AccessConfig("megasena", "yourTokenHere");
            var apiConsumer       = new APIConsumer(accessConfig, loteriasApiConfig);
            var start             = 2275;
            var end    = 2329;
            var result = apiConsumer.GetResults(start, end);

            return(result);
        }