예제 #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);
            }
        }
예제 #2
0
        public Person[] PersonSearch(string name)
        {
            PersonSearchResults search = CallApi <PersonSearchResults>(string.Format(PERSON_SEARCH_URL, this.Key, Escape(name)));

            return(search.People);
        }