Class: UserStream::Client

### Home Classes Methods

### In Files

- lib/user_stream/client.rb

### Parent

UserStream::API

### Methods

- #filter
- #sample
- #user

### Class/Module Index

Quicksearch

- UserStream
- UserStream::API
- UserStream::Client
- UserStream::Configuration
- UserStream::Error
- UserStream::Forbidden
- UserStream::NotAcceptable
- UserStream::RangeUnacceptable
- UserStream::RateLimited
- UserStream::ServerInternalError
- UserStream::ServiceOverloaded
- UserStream::TooLong
- UserStream::Unauhtorized
- UserStream::Unknown

No matching classes.

# UserStream::Client

### Public Instance Methods

filter(params = {}, &block) click to toggle source

Process public statuses that match one or more filter predicates by given block

@see dev.twitter.com/docs/streaming-api/methods#statuses-filter

    # File lib/user_stream/client.rb, line 14
    def filter(params = {}, &block)
      post('/1.1/statuses/filter.json', params, &block)
    end

sample(params = {}, &block) click to toggle source

Process a random sample of all public statuses by given block

@see dev.twitter.com/docs/streaming-api/methods#statuses-sample

    # File lib/user_stream/client.rb, line 21
    def sample(params = {}, &block)
      get('/1.1/statuses/sample.json', params, &block)
    end

user(params = {}, &block) click to toggle source

Process a userstream by given block

@see dev.twitter.com/docs/streaming-api/user-streams

    # File lib/user_stream/client.rb, line 7
    def user(params = {}, &block)
      post('/1.1/user.json', params, &block)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.