Skip to content
George Kye edited this page Apr 10, 2016 · 10 revisions

Get the general person information for a specific id.

        PersonMDB.person_id(apikey, personID: 287){
            personRtn in
            let person = personRtn.data!
            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.data!
            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.data
            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.data!
            print(person.name)
            print(person.also_known_as)
            print(person.biography)
            print(person.birthday)
            print(person.homepage)
        }

///TODO: popular, taggedImages, tv & movies credits

Clone this wiki locally