Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Userstream is a simple twitter userstream library.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 userstream.gemspec
README.md

UserStream

UserStream is a simple twitter userstream library.

Install

$ gem install userstream

Example

require 'user_stream'

UserStream.configure do |config|
  config.consumer_key = 'consumer key'
  config.consumer_secret = 'consumer secret'
  config.oauth_token = 'oauth token'
  config.oauth_token_secret = 'oauth token secret'
end

client = UserStream.client

client.user do |status|
  # ... do something.
end

client.filter(:track => 'twitter') do |status|
  # ... do something.
end

client.sample do |status|
  # ... do something.
end

Requirement

oauth
hashie

Copyright

Released under the MIT license: http://www.opensource.org/licenses/MIT

Something went wrong with that request. Please try again.