Sha256: e4a602eb8ffb3d908dd544a9a1915d0b817693a5b04542dbb0d038dc2e40d4c9

Contents?: true

Size: 578 Bytes

Versions: 12

Compression:

Stored size: 578 Bytes

Contents

gem 'paulsingh-twitter' # go back to regular twitter gem when it is bumped to oauth 0.3.5
require 'twitter'
class TwitterToken < ConsumerToken
  TWITTER_SETTINGS={:site=>"http://twitter.com"}
  def self.consumer
    @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],TWITTER_SETTINGS
  end
  
  def client
    unless @client
      @twitter_oauth=Twitter::OAuth.new TwitterToken.consumer.key,TwitterToken.consumer.secret
      @twitter_oauth.authorize_from_access token,secret
      @client=Twitter::Base.new(@twitter_oauth)
    end
    
    @client
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
filiptepper-oauth-plugin-0.3.11 lib/oauth/models/consumers/services/twitter_token.rb
pelle-oauth-plugin-0.3.10 lib/oauth/models/consumers/services/twitter_token.rb
pelle-oauth-plugin-0.3.6 lib/oauth/models/consumers/services/twitter_token.rb
pelle-oauth-plugin-0.3.7 lib/oauth/models/consumers/services/twitter_token.rb
pelle-oauth-plugin-0.3.8 lib/oauth/models/consumers/services/twitter_token.rb
pelle-oauth-plugin-0.3.9 lib/oauth/models/consumers/services/twitter_token.rb
oauth-plugin-0.3.11 lib/oauth/models/consumers/services/twitter_token.rb
oauth-plugin-0.3.7 lib/oauth/models/consumers/services/twitter_token.rb
oauth-plugin-0.3.6 lib/oauth/models/consumers/services/twitter_token.rb
oauth-plugin-0.3.9 lib/oauth/models/consumers/services/twitter_token.rb
oauth-plugin-0.3.10 lib/oauth/models/consumers/services/twitter_token.rb
oauth-plugin-0.3.8 lib/oauth/models/consumers/services/twitter_token.rb