Socket
Book a DemoInstallSign in
Socket

em-twitter-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

em-twitter-client

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

em-twitter-client

It provides a simple api to access twitter rest api using event machine. This has provided us with really fast and efficient way of retriving twitter data.

The current api is based on pages of information and will retrieve It is based on em-http-request and event-machine.

There are some usage examples in the examples folder.

The current implementation blocks for each api call to finish. Ie. 5 pages of user_timeline is fetched asynchronously but it waits for the call to complete.

That's sort of what we needed, but the complete async api is coming soon as well.

Here are some examples. It's based on em-synchrony. So remember to wrap it into the EM.synchrony

EM.synchrony do 
	twitter = EM::TwitterClient.new(oauth)
	twitter.rate_limit
	twitter.home_timeline(2) do |data|
		@data = data
		puts data.flatten.inspect
		EM.stop
	end
end

Will hopefully publish the gem then as well, when that is done.

FAQs

Package last updated on 13 Jul 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.