heroku / heroku.rb

DEPRECATED! Official Heroku Ruby Legacy API wrapper
161 stars 41 forks source link

username key invalid #53

Closed softwaregravy closed 11 years ago

softwaregravy commented 11 years ago

Getting the error The following keys are invalid: :username when initializing

Heroku::API.new(:username => ENV['HEROKU_USER'], :password => ENV['HEROKU_PASSWORD']) 
The following keys are invalid: :username
The following keys are invalid: :username
softwaregravy commented 11 years ago

Reading through: https://github.com/heroku/heroku.rb/blob/master/lib/heroku/api.rb

doing this manually, this line works: @api_key = self.post_login(options[:username], options[:password]).body["api_key"]

At this point, I think you should be stripping the username and password from the options.

geemus commented 11 years ago

Fixed by #55. Thanks!