class Tmdb::Person

Included Modules

Defined in:

person.cr
person/cast.cr
person/credit_base.cr
person/crew.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Tmdb::ProfileUrls

profile_url(size : String = "original") : String profile_url

Constructor Detail

def self.detail(id : Int64, language : String | Nil = nil) : Person #

Get the primary person details by id.


[View source]
def self.latest(language : String | Nil = nil) : Person #

Get the most newly created person. This is a live response and will continuously change.


[View source]
def self.new(adult : Bool | Nil, gender : Int32, id : Int64, known_for_department : Nil | String, name : String, popularity : Float64 | Nil, profile_path : Nil | String) #

[View source]
def self.new(name : String, id : Int64) #

[View source]
def self.new(data : JSON::Any) #

[View source]

Class Method Detail

def self.popular(language : String | Nil = nil, skip_cache : Bool = false) : LazyIterator(PersonResult) #

Get the list of popular people on TMDB. This list updates daily.


[View source]

Instance Method Detail

def adult : Bool #

[View source]
def also_known_as : Array(String) #

[View source]
def biography : String | Nil #

[View source]
def birthday : Time | Nil #

[View source]
def changes(start_date : Time | Nil = nil, end_date : Time | Nil = nil) : Array(Change) #

Get the changes for a movie. By default only the last 24 hours are returned.

You can query up to 14 days in a single query by using the start_date and end_date query parameters.


[View source]
def combined_credits(language : String | Nil = nil) : Array(Person::Cast | Person::Crew) #

Get the movie and TV credits together in a single response.


[View source]
def deathday : Time | Nil #

[View source]
def external_ids(language : String | Nil = nil) : Array(ExternalId) #

Get the external ids for a person. We currently support the following external sources.

IMDb ID Facebook Freebase MID Freebase ID Instagram TVRage ID Twitter


[View source]
def gender : Gender #

[View source]
def homepage : String | Nil #

[View source]
def id : Int64 #

[View source]
def images : Array(Profile) #

Get the images for a person.


[View source]
def imdb_id : String | Nil #

[View source]
def known_for_department : String | Nil #

[View source]
def movie_credits(language : String | Nil = nil) : Array(Person::Cast | Person::Crew) #

Get the movie credits for a person.


[View source]
def name : String #

[View source]
def place_of_birth : String | Nil #

[View source]
def popularity : Float64 #

[View source]
def profile_path : String | Nil #

[View source]
def profiles : Array(Profile) #

See #images


[View source]
def tagged_images(language : String | Nil = nil) : LazyIterator(TaggedImage) #

Get the images that this person has been tagged in.


[View source]
def translations(language : String | Nil = nil) : Array(Translation) #

Get a list of translations that have been created for a person.


[View source]
def tv_credits(language : String | Nil = nil) : Array(Person::Cast | Person::Crew) #

Get the TV show credits for a person. You can query for some extra details about the credit with the credit method.


[View source]