twitter4r / twitter4r-core

Core library for Twitter4R, which provides Ruby bindings for the Twitter REST API
http://twitter4r.rubyforge.org
MIT License
82 stars 7 forks source link

Twitter4R

Description

Twitter4R provides an object based API to query or update your Twitter account via pure Ruby. It hides the ugly HTTP/REST code from your code.

Installation

gem install twitter4r

Getting Started

Add the twitter4r dependency to your Gemfile:


gem 'twitter4r', :require => 'twitter'

Set your OAuth consumer key and token like so:


Twitter.configure do |config|
  config.oauth_consumer_token = CONSUMER_KEY_HERE
  config.oauth_consumer_secret = CONSUME_SECRET_HERE
end

To create a client object with access tokens:


  client = Twitter::Client.new(:oauth_access => {
      :key => ACCESS\_KEY, :secret => ACCESS\_SECRET
    }
  client.status(:post, "Your awesome less than 140 characters tweet goes here!!! #with #hashtag #goodness")

Usage Examples

Twitter4R starting with version 0.1.1 and above is organized into seven parts:

Features

Library supports:

Twitter.com REST API coverage includes:

Twitter.com Search API coverage includes:

Developers

Contributors

Code:

Design Suggestions:

External Dependencies