public HttpClientRest(string apiUrl, string apiKey) { this._apiUrl = apiUrl; this._apiKey = apiKey; try { Uri uri = new Uri(apiUrl); } catch { throw new PaymillException("ApiURL is not a valid format Uri"); } this._urlEncoder = new URLEncoder(); }