Beispiel #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();
        }
Beispiel #2
0
 private string BuildRequestUrl(WorldBankApiRequest request) =>
 $"https://{request.Uri}/v{request.Version}/country/{request.IsoCode}?format=json";
Beispiel #3
0
 public IsoClient(WorldBankApiRequest request)
 {
     _client = new RestClient(BuildRequestUrl(request));
 }