Sha256: e6e5d4538eba7b23801e1c096da4e24c797f7e54adeaa5130e989dfd04cef60a

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

module Heroku
  class API

    def post_login(username, password)
      request(
        :expects  => 200,
        :method   => :post,
        :path     => '/login',
        :body     => "username=#{URI.encode(username)}&password=#{URI.encode(password)}",
        :headers  => { "Content-Type" => "application/x-www-form-urlencoded" }
      )
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
heroku-api-0.4.3 lib/heroku/api/login.rb
heroku-api-0.4.2 lib/heroku/api/login.rb
heroku-api-0.4.1 lib/heroku/api/login.rb