lib/tumblr/authenticator.rb in tumblr-rb-0.1.1 vs lib/tumblr/authenticator.rb in tumblr-rb-1.0.0
- old
+ new
@@ -1,7 +1,9 @@
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
\ No newline at end of file