Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Ruby wrapper for the Datasift API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.