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

[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/#{}/publishers/#{source}/streams/track/#{label}/rules.json")
end

.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/#{}/publishers/#{source}/streams/track/#{label}.json")
end

.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/#{}/#{label}.json")
end

.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/#{}/#{label}/counts.json")
end