Sha256: 65e29b32c204471f0d6b264ba15584ea00e6455f6750f66829bb5403562a76ef

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 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_activities label
        URI("https://gnip-api.twitter.com/search/fullarchive/accounts/#{account}/#{label}")
      end
      
      def search_counts label
        URI("https://gnip-api.twitter.com/search/fullarchive/accounts/#{account}/#{label}/counts.json")
      end

      private
      def account
        GnipApi.configuration.account
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gnip_api-0.0.5 lib/gnip_api/endpoints.rb