Sha256: bddcd5c83bc85bee13e28baf1afb2990f0612a85f1134fa694c70bba74ea8eae

Contents?: true

Size: 672 Bytes

Versions: 6

Compression:

Stored size: 672 Bytes

Contents

module Twitterland
  module  TweetMeme
    class Comments
      include HTTParty
      base_uri 'api.tweetmeme.com/comments'
      format :json
      
      # Returns the most recent comments posted on TweetMeme, along with information on which URL they were posted on.
      #
      #   Twitterland::TweetMeme::Comments.firehose
      def self.firehose(options={})
        Mash.new get("/firehose.json")
      end
      
      # Returns comments posted on a particular URL
      # 
      #   Twitterland::TweetMeme.get_url('http://squeejee.com')
      def self.get_url(url)
        Mash.new get("/get_url.json", :query => {:url => url})
      end
      
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twitterland-0.4.5 lib/twitterland/tweet_meme/comments.rb
twitterland-0.4.4 lib/twitterland/tweet_meme/comments.rb
twitterland-0.4.3 lib/twitterland/tweet_meme/comments.rb
twitterland-0.4.2 lib/twitterland/tweet_meme/comments.rb
twitterland-0.4.1 lib/twitterland/tweet_meme/comments.rb
twitterland-0.4.0 lib/twitterland/tweet_meme/comments.rb