Class: GnipApi::Endpoints
- Inherits:
-
Object
- Object
- GnipApi::Endpoints
- Defined in:
- lib/gnip_api/endpoints.rb
Class Method Summary collapse
- .powertrack_rules(source, label) ⇒ Object
- .powertrack_stream(source, label) ⇒ Object
- .search_activities(label) ⇒ Object
- .search_counts(label) ⇒ Object
Class Method Details
permalink .powertrack_rules(source, label) ⇒ Object
[View source]
4 5 6 |
# File 'lib/gnip_api/endpoints.rb', line 4 def powertrack_rules source, label URI("https://api.gnip.com:443/accounts/#{account}/publishers/#{source}/streams/track/#{label}/rules.json") end |
permalink .powertrack_stream(source, label) ⇒ Object
[View source]
8 9 10 |
# File 'lib/gnip_api/endpoints.rb', line 8 def powertrack_stream source, label URI("https://stream.gnip.com:443/accounts/#{account}/publishers/#{source}/streams/track/#{label}.json") end |
permalink .search_activities(label) ⇒ Object
[View source]
12 13 14 |
# File 'lib/gnip_api/endpoints.rb', line 12 def search_activities label URI("https://gnip-api.twitter.com/search/fullarchive/accounts/#{account}/#{label}.json") end |
permalink .search_counts(label) ⇒ Object
[View source]
16 17 18 |
# File 'lib/gnip_api/endpoints.rb', line 16 def search_counts label URI("https://gnip-api.twitter.com/search/fullarchive/accounts/#{account}/#{label}/counts.json") end |