From f56c6545f2f6de5eabfaa01626edc05435453bd8 Mon Sep 17 00:00:00 2001 From: Nick Howard Date: Mon, 30 Apr 2012 12:32:20 -0600 Subject: [PATCH] use the gnip api subdomain instead of the streaming subdomain --- README.md | 4 ++-- lib/gnip-rules.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2c88ab8..6fea9d4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ There are two ways you can provide credentials to the gnip-api gem. * Pass them to the initialize method - `Gnip::Rules.new( "chieflarl@larlbang.com", "larl!operator" ,'https://stream.gnip.com/.../YOUR_ACCOUNT/.../prod' )` + `Gnip::Rules.new( "chieflarl@larlbang.com", "larl!operator" ,'https://api.gnip.com/.../YOUR_ACCOUNT/.../prod' )` * Via a configuration file at config/gnip.yml @@ -22,7 +22,7 @@ There are two ways you can provide credentials to the gnip-api gem. development: &development username: chieflarl@larlbang.com password: larl!operator - streaming_url:'https://stream.gnip.com:443/accounts/YOUR_ACCOUNT/publishers/twitter/streams/track/prod' + api_url:'https://api.gnip.com:443/accounts/YOUR_ACCOUNT/publishers/twitter/streams/track/prod' ``` ## Usage diff --git a/lib/gnip-rules.rb b/lib/gnip-rules.rb index 4d98bd5..8a41463 100644 --- a/lib/gnip-rules.rb +++ b/lib/gnip-rules.rb @@ -15,7 +15,7 @@ def initialize( configuration = nil, username = nil, password = nil, uri = nil ) load_credentials! username = @config["username"] password = @config["password"] - uri = uri || @config["streaming_url"] + uri = uri || @config["api_url"] end self.class.basic_auth username , password @@ -55,7 +55,7 @@ def load_credentials! username: omg@omg.com password: larl! account: larloperator - streaming_url: 'https://stream.gnip.com:443/accounts/YOUR_ACCOUNT/publishers/twitter/streams/track/prod/' + api_url: 'https://api.gnip.com/accounts/YOUR_ACCOUNT/publishers/twitter/streams/track/prod/' RUBY )