-
Notifications
You must be signed in to change notification settings - Fork 38
People
George Kye edited this page Mar 9, 2016
·
10 revisions
Get the general person information for a specific id.
PersonMDB.person_id(apikey, personID: 287){
personRtn in
let person = personRtn.MBDBReturn as! PersonMDB
print(person.name)
print(person.also_known_as)
print(person.biography)
print(person.birthday)
print(person.homepage)
}
Get the external ids for a specific person id.
PersonMDB.externalIDS(apikey, personID: 287){
apiReturn in
let exIds = apiReturn.MBDBReturn as! ExternalIdsMDB
print(exIds.freebase_id)
print(exIds.imdb_id)
print(exIds.tvrage_id)
print(exIds.id)
}
Get the images for a specific person id.
PersonMDB.images(apikey, personID: 287){
apiReturn in
let images = apiReturn.MBDBReturn as! [Images_MDB]
for image in images{
print(image.file_path)
print(image.width)
print(image.iso_639_1)
}
}
Get the latest person id.
PersonMDB.latest(apikey){
personRtn in
let person = personRtn.MBDBReturn as! PersonMDB
print(person.name)
print(person.also_known_as)
print(person.biography)
print(person.birthday)
print(person.homepage)
}