/// <summary> /// Make a search /// </summary> /// <param name="request">a search request</param> /// <returns></returns> public SearchResult Search(Request request) { var result = Http.Get(RequestPath, request.ToDictionary()); return(JsonConvert.DeserializeObject <SearchResult>(result)); }
/// <summary> /// Make a search /// </summary> /// <param name="keyword">keyword</param> /// <returns></returns> public SearchResult Search(string keyword) { var result = Http.Get(RequestPath, new SearchRequest(keyword).ToDictionary()); return(JsonConvert.DeserializeObject <SearchResult>(result)); }