class Tmdby::TvSeasons

Public Class Methods

account_states(id, season_number, session_id) click to toggle source

This method lets users get the status of whether or not the TV episodes of a season have been rated.

# File lib/tmdby/wrappers/tv_seasons.rb, line 21
def self.account_states(id, season_number, session_id)
  self.fetch "#{id}/season/#{season_number}/account_states",
              session_id: session_id,
              authorized_params: ["session_id", "language"]
end
changes(id, optional_params = {}) click to toggle source

Look up a TV season's changes by season ID.

# File lib/tmdby/wrappers/tv_seasons.rb, line 14
def self.changes(id, optional_params = {})
  self.fetch "season/#{id}/changes",
              optional_params,
              authorized_params: ["start_date", "end_date", "page"]
end
credits(id, season_number) click to toggle source

Get the cast & crew credits for a TV season by season number.

# File lib/tmdby/wrappers/tv_seasons.rb, line 28
def self.credits(id, season_number)
  self.fetch "#{id}/season/#{season_number}/credits",
              authorized_params: ["language"]
end
external_ids(id, season_number, optional_params = {}) click to toggle source

Get the primary information about a TV season by its season number.

# File lib/tmdby/wrappers/tv_seasons.rb, line 34
def self.external_ids(id, season_number, optional_params = {})
  self.fetch "#{id}/season/#{season_number}/external_ids",
              optional_params,
              authorized_params: ["external_ids", "language"]
end
get(id, season_id, optional_params = {}) click to toggle source

Get the primary information about a TV season by its season number.

# File lib/tmdby/wrappers/tv_seasons.rb, line 7
def self.get(id, season_id, optional_params = {})
  self.fetch "#{id}/season/#{season_id}",
              optional_params,
              authorized_params: ["language", "append_to_response"]
end
images(id, season_number, optional_params = {}) click to toggle source

Get the images (posters) that we have stored for a TV season by season number.

# File lib/tmdby/wrappers/tv_seasons.rb, line 41
def self.images(id, season_number, optional_params = {})
  self.fetch "#{id}/season/#{season_number}/images",
              optional_params,
              authorized_params: ["language", "include_image_language"]
end
videos(id, season_number, optional_params = {}) click to toggle source

Get the videos that have been added to a TV season (trailers, teasers, etc…)

# File lib/tmdby/wrappers/tv_seasons.rb, line 48
def self.videos(id, season_number, optional_params = {})
  self.fetch "#{id}/season/#{season_number}/videos",
              optional_params,
              authorized_params: ["language"]
end