/// <summary> /// Create an instance of the ApiClient. /// </summary> /// <param name="baseApiUrl">URL of the Diffbot Api. (ex. http://api.diffbot.com )</param> /// <param name="token">Diffbot API Token required for using the API.</param> /// <param name="version">Vesion of the API</param> public ImageApi(string baseApiUrl, string token, string version) { if (string.IsNullOrWhiteSpace(baseApiUrl)) { throw new ArgumentNullException("baseApiUrl"); } if (string.IsNullOrWhiteSpace(token)) { throw new ArgumentNullException("token"); } if (string.IsNullOrWhiteSpace(version)) { throw new ArgumentException("Incorrect API version", "version"); } this.token = token; this.version = int.Parse(version); diffbotCall = new DiffbotCall(baseApiUrl); }