lib/pardot/authentication.rb in ruby-pardot-1.1.0 vs lib/pardot/authentication.rb in ruby-pardot-1.2.0
- old
+ new
@@ -1,9 +1,9 @@
module Pardot
module Authentication
def authenticate
- resp = post "login", nil, :email => @email, :password => @password, :user_key => @user_key
+ resp = post "login", nil, nil, nil, :email => @email, :password => @password, :user_key => @user_key
update_version(resp["version"]) if resp && resp["version"]
@api_key = resp && resp["api_key"]
end
def authenticated?