Sha256: 3572521f610e163fbb402d01a5bb0a5001eab91d2d82dc0a9961112c5745e6a6

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

class Tumblr
  class Authenticator < Weary::Base
    
    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

2 entries across 2 versions & 1 rubygems

Version Path
tumblr-rb-0.1.1 lib/tumblr/authenticator.rb
tumblr-rb-0.1.0 lib/tumblr/authenticator.rb