Sha256: a0f3690e211316695104cb4c2819fa8c15e8fe9c6bb6ea9eec90fcd3174d6a9e
Contents?: true
Size: 741 Bytes
Versions: 3
Compression:
Stored size: 741 Bytes
Contents
module GnipApi class Endpoints class << self def powertrack_rules source, label URI("https://api.gnip.com:443/accounts/#{account}/publishers/#{source}/streams/track/#{label}/rules.json") end def powertrack_stream source, label URI("https://stream.gnip.com:443/accounts/#{account}/publishers/#{source}/streams/track/#{label}.json") end def search_stream label URI("https://search.gnip.com/accounts/#{account}/search/#{label}.json") end def search_count URI("https://search.gnip.com/accounts/#{ CONFIG['account'] }/search/#{label}.json/counts") end private def account GnipApi.configuration.account end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gnip_api-0.0.4 | lib/gnip_api/endpoints.rb |
gnip_api-0.0.3 | lib/gnip_api/endpoints.rb |
gnip_api-0.0.2 | lib/gnip_api/endpoints.rb |