Permalink
Browse files

switch to public-api.netflix.com

  • Loading branch information...
1 parent cb65b7b commit 9a9c78cca256b1fe0f7fed7b6d5f57f736afc1e2 @mislav committed Nov 4, 2012
View
@@ -14,7 +14,7 @@ def call(env)
end
end
- define_connection 'http://api.netflix.com' do |conn|
+ define_connection 'http://api-public.netflix.com' do |conn|
if user_agent = Movies::Application.config.user_agent
conn.headers[:user_agent] = user_agent
end

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -5,7 +5,7 @@
describe Netflix::Title do
before(:all) do
- stub_request(:get, 'http://api.netflix.com/catalog/titles?start_index=0&term=mar%20adentro&max_results=5&v=1.5').
+ stub_request(:get, 'http://api-public.netflix.com/catalog/titles?start_index=0&term=mar%20adentro&max_results=5&v=1.5').
to_return(:body => read_fixture('netflix-mar_adentro.xml'), :status => 200)
@catalog = Netflix.search('mar adentro')
@@ -60,7 +60,7 @@
describe Netflix, "autocomplete" do
before(:all) do
- stub_request(:get, 'http://api.netflix.com/catalog/titles/autocomplete?term=step&v=1.5').
+ stub_request(:get, 'http://api-public.netflix.com/catalog/titles/autocomplete?term=step&v=1.5').
to_return(:body => read_fixture('netflix-autocomplete.xml'), :status => 200)
@result = Netflix.autocomplete('step')

0 comments on commit 9a9c78c

Please sign in to comment.