Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Net;
- namespace DynamicCurrencyConverter
- {
- class APIRequester
- {
- private string url;
- private WebClient client;
- public APIRequester(string url)
- {
- this.url = url;
- client = new WebClient();
- }
- public string SendAndGetResponse()
- {
- return client.DownloadString(url);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment