예제 #1
0
        /// <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));
        }
예제 #2
0
        /// <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));
        }