Sha256: cb096e89de46c8ac9ea2bc8c71ba7c14bd8730e7b2c0af974fd8f8a51f3b41dd
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require "rubygems" if RUBY_VERSION < "1.9.0" require "net/http" require "uri" require "oauth" require "json" class Pupil attr_reader :screen_name class NetworkError < StandardError ; end TWITTER_API_URL = "https://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] || nil end include Essentials end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pupil-0.7 | lib/pupil/base.rb |