Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
= TwitterDispatch
TwitterDispatch is an unassuming API wrapper for Twitter based on the dispatcher from TwitterAuth. Rather than create a complex object mapping system around the simple REST API Twitter provides, TwitterDispatch simply gives you the tools to make calls directly to the API URLs and parse the results (or not).
TwitterDispatch supports both OAuth and HTTP Basic authentication strategies.
== Usage
To use TwitterDispatch you will need different things depending on the strategy you are using:
Usage of TwitterDispatch is straightforward. Here are some basic examples to get you going.
# OAuth Example
dispatcher = TwitterDispatch.new(:oauth, 'myconsumerkey', 'myconsumersecret', 'myaccesskey', 'myaccesssecret')
dispatcher.get('/account/verify_credentials') # => {'screen_name' => ...}
dispatcher.post('/statuses/update', :status => 'Update my status.') # => {'text' => 'Update my status.' ... }
# HTTP Basic Example
dispatcher = TwitterDispatch.new(:basic, 'screenname', 'password')
dispatcher.get('/statuses/friends_timeline') # => [{'text' => ...}]
# No Auth Example
dispatcher = TwitterDispatch.new
dispatcher.get('/statuses/public_timeline') # => [{'text' => ...}]
# Search Example
dispatcher = TwitterDispatch.new
dispatcher.search('query text') # => [{'text' => ...}]
TwitterDispatch is not meant to be complex or assuming, it literally just does the bare minimum to provide you with a simple and direct access to the Twitter API in Ruby.
== Copyright
Copyright (c) 2009 Michael Bleigh and Intridea, Inc. See LICENSE for details.
FAQs
Unknown package
We found that twitterdispatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.