Sha256: 8172ee8eec198ab9c094cbd81b5d2c26e66544de7178a0413049025c55a92382
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
require 'twitter' class TwitterToken < ConsumerToken def self.twitter @twitter||=Twitter::OAuth.new( OAUTH_CREDENTIALS[:twitter][:key],OAUTH_CREDENTIALS[:twitter][:secret]).consumer end def self.consumer @twitter.consumer end def client unless @client @client=TwitterToken.twitter.clone @client.authorize_from_access token,secret end @client end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
pelle-oauth-plugin-0.3.5 | lib/oauth/models/consumers/services/twitter_token.rb |
oauth-plugin-0.3.5 | lib/oauth/models/consumers/services/twitter_token.rb |