Ejemplo n.º 1
0
        public Person GetPersonInfo(int id)
        {
            PersonSearchResults search = CallApi <PersonSearchResults>(string.Format(PERSON_SEARCH_URL, this.Key, id));

            if (search.People.Length == 1)
            {
                return(search.People[0]);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
        public Person[] PersonSearch(string name)
        {
            PersonSearchResults search = CallApi <PersonSearchResults>(string.Format(PERSON_SEARCH_URL, this.Key, Escape(name)));

            return(search.People);
        }