Sha256: 435e9b95ce4e273c0de7bca37cafd71936b048d5293aa31525f8a07be5118ab0
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
class Tumblr class Authenticator < Weary::Base headers({"User-Agent" => Tumblr::USER_AGENT}) def initialize(*credentials) @defaults = {:email => credentials[0], :password => credentials[1]} unless credentials.blank? end # http://www.tumblr.com/docs/en/api#authenticate post :authenticate do |auth| auth.url = 'http://www.tumblr.com/api/authenticate' auth.requires = [:email, :password] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tumblr-rb-1.1.1 | lib/tumblr/authenticator.rb |
tumblr-rb-1.1.0 | lib/tumblr/authenticator.rb |
tumblr-rb-1.0.0 | lib/tumblr/authenticator.rb |