Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rsift

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsift

  • 0.3.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 08 Apr 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc