/// <summary> /// Get the word count of provided resources /// </summary> /// <param name="resources">a comma (,) separated list of resource_uuid</param> /// <returns></returns> public GetWordCountResult GetWordCount(string resources) { var r = new GetWordCountResult(); try { if (GetWordCountProvider == null) { GetWordCountProvider = new GetWordCountProvider(); } var json = GetWordCountProvider.Get(Url, _proxy, KeyPublic, KeySecret, resources); r = JsonConvert.DeserializeObject <GetWordCountResult>(json.Replace("\"results\":[", "\"resultsArray\":[")); } catch (Exception err) { r.Status.Code = -1; r.Status.Msg = err.Message; } return(r); }
/// <summary> /// Get the word count of provided resources /// </summary> /// <param name="resources">a comma (,) separated list of resource_uuid</param> /// <returns></returns> public GetWordCountResult GetWordCount(string resources) { var r = new GetWordCountResult(); try { if (GetWordCountProvider == null) GetWordCountProvider = new GetWordCountProvider(); var json = GetWordCountProvider.Get(Url, _proxy, KeyPublic, KeySecret, resources); r = JsonConvert.DeserializeObject<GetWordCountResult>(json.Replace("\"results\":[", "\"resultsArray\":[")); } catch (Exception err) { r.Status.Code = -1; r.Status.Msg = err.Message; } return r; }