public List <PersonSearchResult> SearchPerson(string query, string language)
        {
            string url = GetUrl(URL_PERSONQUERY, language) + "&query=" + HttpUtility.UrlEncode(query);
            PagedPersonSearchResult results = _downloader.Download <PagedPersonSearchResult>(url);

            return(results.Results);
        }
Exemple #2
0
        public async Task <List <PersonSearchResult> > SearchPersonAsync(string query, string language)
        {
            PagedPersonSearchResult result = await SearchAsync <PagedPersonSearchResult>(URL_PERSONQUERY, query, language).ConfigureAwait(false);

            return(result.Results);
        }