public int Count(SearchRequest request) { string json = this.ExecuteGet("/search/count", request.GetQueryParams()); JObject ret = JObject.Parse(json); return ret["count"].Value<Int32>(); }
public SearchResponse Search(SearchRequest request) { string json = this.ExecuteGet("/search", request.GetQueryParams()); SearchResponse ret = JsonConvert.DeserializeObject<SearchResponse>(json); return ret; }