Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 231 Bytes
require "sinatra/base"
require "open-uri"
class FetchTweets < Sinatra::Base
get '/' do
"Hello World"
end
get '/:user' do
open("http://search.twitter.com/search.json?q=#{params[:user]}")
end
end
FetchTweets.run!
Jump to Line
Something went wrong with that request. Please try again.