Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hitode909/user-stream-receiver
https://github.com/hitode909/user-stream-receiver
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hitode909/user-stream-receiver
- Owner: hitode909
- License: mit
- Created: 2011-01-18T05:14:55.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-10-05T13:22:42.000Z (about 13 years ago)
- Last Synced: 2024-03-15T13:07:01.756Z (10 months ago)
- Language: Ruby
- Size: 108 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE.txt
Awesome Lists containing this 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
Copyright (c) 2011 hitode909. See LICENSE.txt for
further details.