No commit activity in last 3 years
No release in over 3 years
User Stream Receiver.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
>= 0
> 1.2.3

Runtime

 Project Readme

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 © 2011 hitode909. See LICENSE.txt for further details.