Class: GnipApi::Endpoints

Inherits:
Object
  • Object
show all
Defined in:
lib/gnip_api/endpoints.rb

Class Method Summary collapse

Class Method Details

.powertrack_rules(source, label) ⇒ Object



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

.powertrack_stream(source, label) ⇒ Object



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

.search_activities(label) ⇒ Object



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

.search_counts(label) ⇒ Object



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