Sha256: b345ab7c193c60083bff93dfde23068bf18c7f9e00dfb97fd7b12b887420e162
Contents?: true
Size: 407 Bytes
Versions: 5
Compression:
Stored size: 407 Bytes
Contents
# encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl/http_stream' require 'uri' unless keywords = ARGV[0] puts "\nUsage: ruby examples/http/twitter_search_api.rb keyword\n\n" exit(0) end puts Yajl::HttpStream.get("http://search.twitter.com/search.json?q=#{keywords}").inspect
Version data entries
5 entries across 5 versions & 1 rubygems