Sha256: aa08751d61b5fc4e2ccb6f422d9a8010bd902fcc7921a0c2a954ba8168fcdc1d
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require "rubygems" require "net/http" require "uri" require "oauth" require "json" class Pupil attr_reader :screen_name class NetworkError < StandardError ; end TWITTER_API_URL = "http://api.twitter.com" # @param [Hash] pupil_key def initialize key @consumer = OAuth::Consumer.new( key[:consumer_key], key[:consumer_secret], :site => TWITTER_API_URL ) @access_token = OAuth::AccessToken.new( @consumer, key[:access_token], key[:access_token_secret] ) @screen_name = key[:screen_name] || self.profile.screen_name end include Essentials end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pupil-0.6.2 | lib/pupil/base.rb |