Module: NetFlix::API::Catalog::Titles

Defined in:
lib/net_flix/api/catalog/titles.rb

Class Method Summary collapse

Class Method Details

.list(params = {}) ⇒ Object



13
14
15
# File 'lib/net_flix/api/catalog/titles.rb', line 13

def list(params = {})
  NetFlix::Request.new(url: 'http://api-public.netflix.com/catalog/titles/index', parameters: params).send
end

.search(params = {}) ⇒ Object

example Title.search(term: ‘sneakers’, max_results: 10)



9
10
11
# File 'lib/net_flix/api/catalog/titles.rb', line 9

def search(params = {})
  NetFlix::Request.new(url: 'http://api-public.netflix.com/catalog/titles', parameters: params).send
end