Exemplo n.º 1
0
        public FreshBooksClient(HttpClient httpClient, string account, FreshBooksClientOptions options)
        {
            if (httpClient == null)
            {
                throw new ArgumentNullException("httpClient");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            _url        = string.Format("https://{0}.freshbooks.com/api/2.1/xml-in", account);
            _httpClient = httpClient;
            Options     = options;
        }
 public static FreshBooksClient FreshBooks(this HttpClient httpClient, string account, FreshBooksClientOptions options)
 {
     return(new FreshBooksClient(httpClient, account, options));
 }
 public static FreshBooksClient FreshBooks(this HttpClient httpClient, string account, FreshBooksClientOptions options)
 {
     return new FreshBooksClient(httpClient, account, options);
 }