Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 68d8a1a00f
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.404 kB
$LOAD_PATH.unshift './examples'
require 'base_reader'
fail "Usage: ruby ./examples/twitter_sample.rb <twitter_username> <twitter_password>" unless ARGV[0] && ARGV[1]
BaseReader.run(
:auth =>"#{ARGV[0]}:#{ARGV[1]}",
:ssl => true,
:host => 'stream.twitter.com',
:path => '/1/statuses/filter.json',
:method => 'POST',
:content => 'track=basketball'
)
Jump to Line
Something went wrong with that request. Please try again.