public AdferoClient(string baseUri, string publicKey, string secretKey)
        {
            Regex regBase = new Regex("^http://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$", RegexOptions.IgnoreCase);
            if (!regBase.IsMatch(baseUri))
                throw new ArgumentException("Not a valid uri");

            if (!baseUri.EndsWith("/"))
                baseUri += "/";

            this.baseUri = baseUri;
            this.credentials = new AdferoCredentials(publicKey, secretKey);
        }
        public AdferoClient(string baseUri, string publicKey, string secretKey)
        {
            Regex regBase = new Regex("^http://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$", RegexOptions.IgnoreCase);

            if (!regBase.IsMatch(baseUri))
            {
                throw new ArgumentException("Not a valid uri");
            }

            if (!baseUri.EndsWith("/"))
            {
                baseUri += "/";
            }

            this.baseUri     = baseUri;
            this.credentials = new AdferoCredentials(publicKey, secretKey);
        }