Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

This branch is 8 commits behind hitode909:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
user-stream-receiver.gemspec

README.rdoc

user-stream-receiver

Usage

require 'user-stream-receiver'
require 'json'

UserStreamReceiver.new.run{|chunk|
  p JSON.parse(chunk)
}

or, use your AccessToken.

access_token = OAuth::AccessToken.new(....)

UserStreamReceiver.new_from_access_token(access_token).run{|chunk|
  p JSON.parse(chunk)
}

Run examples

% user-stream-receiver

This command dumps UserStream.

% user-stream-receiver-insert-mongo

This command dumps UserStream and inserts records to MongoDB.

Requirement

* oauth-cli-twitter
* mongo (to run MongoDB example)

Install

gem install user-stream-receiver

Copyright

Copyright © 2011 hitode909. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.