module TmdbRexx::Client::Person

Constants

RESOURCE

Public Instance Methods

latest_person(person_id, options = {}) click to toggle source

Get the latest movie id.

@see docs.themoviedb.apiary.io/#reference/people/personidlatest

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person latest

TmdbRexx::Client.latest_person("person-id")
# File lib/tmdb_rexx/client/person.rb, line 149
def latest_person(person_id, options = {})
  get([RESOURCE, "latest"].join("/"), options)
end
person(person_id, options = {}) click to toggle source

Get the general person information for a specific id.

@see docs.themoviedb.apiary.io/#reference/person/personid

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person api response

TmdbRexx::Client.person("person-id")
# File lib/tmdb_rexx/client/person.rb, line 16
def person(person_id, options = {})
  get([RESOURCE, person_id].join("/"), options)
end
person_changes(person_id, options = {}) click to toggle source

Get the changes made to the movie.

@see docs.themoviedb.apiary.io/#reference/people/personidchanges

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person changes

TmdbRexx::Client.person_changes("person-id")
# File lib/tmdb_rexx/client/person.rb, line 135
def person_changes(person_id, options = {})
  get([RESOURCE, person_id, "changes"].join("/"), options)
end
person_combined_credits(person_id, options = {}) click to toggle source

Get the combined (movie and TV) credits for a specific person id.To get the expanded details for each TV record, call the /credit method with the provided credit_id. This will provide details about which episode and/or season the credit is for.

@see docs.themoviedb.apiary.io/#reference/people/personidcombinedcredits

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person combined credits api response

TmdbRexx::Client.person_combined_credits("person-id")
# File lib/tmdb_rexx/client/person.rb, line 64
def person_combined_credits(person_id, options = {})
  get([RESOURCE, person_id, "combined_credits"].join("/"), options)
end
person_external_ids(person_id, options = {}) click to toggle source

Get the external ids for a specific person id.

@see docs.themoviedb.apiary.io/#reference/people/personidexternalids

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person external ids api response

TmdbRexx::Client.person_external_ids("person-id")
# File lib/tmdb_rexx/client/person.rb, line 78
def person_external_ids(person_id, options = {})
  get([RESOURCE, person_id, "external_ids"].join("/"), options)
end
person_images(person_id, options = {}) click to toggle source

Get the images for a specific person id.

@see docs.themoviedb.apiary.io/#reference/people/personidimages

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person images api response

TmdbRexx::Client.person_images("person-id")
# File lib/tmdb_rexx/client/person.rb, line 92
def person_images(person_id, options = {})
  get([RESOURCE, person_id, "images"].join("/"), options)
end
person_movie_credits(person_id, options = {}) click to toggle source

Get the movie credits for a specific person id.

@see docs.themoviedb.apiary.io/#reference/people/personidmoviecredits

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person movie credits api response

TmdbRexx::Client.person_movie_credits("person-id")
# File lib/tmdb_rexx/client/person.rb, line 30
def person_movie_credits(person_id, options = {})
  get([RESOURCE, person_id, "movie_credits"].join("/"), options)
end
person_profiles(person_id, options = {}) click to toggle source

Get the person profile images for a specific person id. This is a convenience method base on .person_images

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person profile images

TmdbRexx::Client.person_profiles("person-id")
# File lib/tmdb_rexx/client/person.rb, line 121
def person_profiles(person_id, options = {})
  get([RESOURCE, person_id, "images"].join("/"), options)["profiles"]
end
person_tv_credits(person_id, options = {}) click to toggle source

Get the TV credits for a specific person id.To get the expanded details for each record, call the /credit method with the provided credit_id. This will provide details about which episode and/or season the credit is for.

@see docs.themoviedb.apiary.io/#reference/people/personidtvcredits

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person tv credits api response

TmdbRexx::Client.person_tv_credits("person-id")
# File lib/tmdb_rexx/client/person.rb, line 47
def person_tv_credits(person_id, options = {})
  get([RESOURCE, person_id, "tv_credits"].join("/"), options)
end
tagged_images(person_id, options = {}) click to toggle source

Get the images that have been tagged with a specific person id. We return all of the image results with a media object mapped for each image.

@see docs.themoviedb.apiary.io/#reference/people/personidtaggedimages

@param [String] id the person id

@return [Hashie::Mash] person response

@example Get the person tagged images api response

TmdbRexx::Client.tagged_images("person-id")
# File lib/tmdb_rexx/client/person.rb, line 108
def tagged_images(person_id, options = {})
  get([RESOURCE, person_id, "tagged_images"].join("/"), options)
end