Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //@TODO take this as an input
            var request = new WorldBankApiRequest("api.worldbank.org", 2, "gb");

            var client = new IsoClient(request);

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 private string BuildRequestUrl(WorldBankApiRequest request) =>
 $"https://{request.Uri}/v{request.Version}/country/{request.IsoCode}?format=json";
Ejemplo n.º 3
0
 public IsoClient(WorldBankApiRequest request)
 {
     _client = new RestClient(BuildRequestUrl(request));
 }