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 )