Skip to content
A Ruby wrapper for the Datasift API
Ruby
Latest commit 4ae4ac3 Apr 8, 2011 @sshingler Bumping gem version.
Failed to load latest commit information.
config
lib
test/unit
.gitignore
.rvmrc
Gemfile Adding gemspec Dec 23, 2010
Gemfile.lock
README.md Updating README, including mention of websockets api. Dec 28, 2010
Rakefile
rsift.gemspec

README.md

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.

Something went wrong with that request. Please try again.