lib/twitterland.rb in twitterland-0.3.0 vs lib/twitterland.rb in twitterland-0.4.0
- old
+ new
@@ -23,18 +23,35 @@
class Unavailable < StandardError; end
class InformTwitter < StandardError; end
class NotFound < StandardError; end
+ module TweetMeme
+ include HTTParty
+ base_uri 'api.tweetmeme.com'
+ format :json
+
+ # Takes any URL posted to Twitter and resolves it to its original URL as well as details about that webpage, such as the title.
+ #
+ # Twitterland::TweetMeme.url_info('http://squeejee.com')
+ def self.url_info(url)
+ Mash.new get("/url_info.json", :query => {:url => url})
+ end
+
+ end
+
end
directory = File.expand_path(File.dirname(__FILE__))
-
+require File.join(directory, 'twitterland', 'foller_me')
require File.join(directory, 'twitterland', 'follow_cost')
require File.join(directory, 'twitterland', 'twitter_counter')
require File.join(directory, 'twitterland', 'twinfluence')
require File.join(directory, 'twitterland', 'mrtweet')
require File.join(directory, 'twitterland', 'twitter_grader')
require File.join(directory, 'twitterland', 'tweet_blocker')
require File.join(directory, 'twitterland', 'back_tweets')
-require File.join(directory, 'twitterland', 'thumbfight')
+require File.join(directory, 'twitterland', 'thumbfight')
+require File.join(directory, 'twitterland', 'tweet_meme', 'stories')
+require File.join(directory, 'twitterland', 'tweet_meme', 'comments')
+require File.join(directory, 'twitterland', 'tweet_meme', 'analytics')
\ No newline at end of file