Class: GnipApi::Endpoints

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

Class Method Summary collapse

Class Method Details

.powertrack_rule_replayObject



24
25
26
# File 'lib/gnip_api/endpoints.rb', line 24

def powertrack_rule_replay
  URI("https://gnip-api.twitter.com/rules/powertrack-replay/accounts/#{account}/publishers/twitter/#{label}.json")
end

.powertrack_rule_validatorObject



4
5
6
# File 'lib/gnip_api/endpoints.rb', line 4

def powertrack_rule_validator
  URI("https://gnip-api.twitter.com/rules/powertrack/accounts/#{account}/publishers/twitter/#{label}/validation.json")
end

.powertrack_rulesObject



8
9
10
# File 'lib/gnip_api/endpoints.rb', line 8

def powertrack_rules
  URI("https://gnip-api.twitter.com/rules/powertrack/accounts/#{account}/publishers/twitter/#{label}.json")
end

.powertrack_streamObject



12
13
14
# File 'lib/gnip_api/endpoints.rb', line 12

def powertrack_stream
  URI("https://gnip-stream.twitter.com/stream/powertrack/accounts/#{account}/publishers/twitter/#{label}.json")
end

.powertrack_stream_replayObject



20
21
22
# File 'lib/gnip_api/endpoints.rb', line 20

def powertrack_stream_replay
  URI("https://gnip-stream.twitter.com/replay/powertrack/accounts/#{account}/publishers/twitter/#{label}.json")
end

.search_activitiesObject



28
29
30
# File 'lib/gnip_api/endpoints.rb', line 28

def search_activities
  URI("https://gnip-api.twitter.com/search/fullarchive/accounts/#{account}/#{label}.json")
end

.search_countsObject



32
33
34
# File 'lib/gnip_api/endpoints.rb', line 32

def search_counts
  URI("https://gnip-api.twitter.com/search/fullarchive/accounts/#{account}/#{label}/counts.json")
end