Sha256: 34068aaad356b57ae7e30f636dcb589e7498f1539964bcff188b438b6b300020

Contents?: true

Size: 759 Bytes

Versions: 4

Compression:

Stored size: 759 Bytes

Contents

# rsift

This is a Ruby client wrapper for the Datasift API. Right now, it just handles data, streams and comments. There's also a class to handle receiving data from Datasift using their websockets implementation.

Current Limitations

* All calls require credentials to be passed in
* All responses are in JSON

# To get started:

  stream = Rsift::Stream.new(api_url, api_key, username)
  
  json_response = @stream.do("my")

  comment = Rsift::Comment.new(api_url, api_key, username)

  opts = {:stream_id => "1", :comment => "test comment"}

  json_response = comment.do("create", opts)


# The websockets API can be used like this:

  Rsift::Socket.perform(stream_identifier) do |tweet|
    puts tweet
  end
  
Check the tests for more usage examples.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rsift-0.3.6 README.md
rsift-0.3.5 README.md
rsift-0.3.4 README.md
rsift-0.3.3 README.md