Sha256: 77eac35cf56016c3e219a48dca71a1e7e8ce1d06e160d04cef333f4143268888

Contents?: true

Size: 754 Bytes

Versions: 12

Compression:

Stored size: 754 Bytes

Contents

module Heroku
  class API

    # DELETE /apps/:app/collaborators/:email
    def delete_collaborator(app, email)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/apps/#{app}/collaborators/#{CGI.escape(email)}"
      )
    end

    # GET /apps/:app/collaborators
    def get_collaborators(app)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/apps/#{app}/collaborators"
      )
    end

    # POST /apps/:app/collaborators
    def post_collaborator(app, email)
      request(
        :expects  => [200, 201],
        :method   => :post,
        :path     => "/apps/#{app}/collaborators",
        :query    => {'collaborator[email]' => email}
      )
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
heroku-api-0.4.3 lib/heroku/api/collaborators.rb
heroku-api-0.4.2 lib/heroku/api/collaborators.rb
heroku-api-0.4.1 lib/heroku/api/collaborators.rb
heroku-api-0.4.0 lib/heroku/api/collaborators.rb
heroku-api-0.3.23 lib/heroku/api/collaborators.rb
heroku-api-0.3.22 lib/heroku/api/collaborators.rb
heroku-api-0.3.21 lib/heroku/api/collaborators.rb
heroku-api-0.3.20 lib/heroku/api/collaborators.rb
heroku-api-0.3.19 lib/heroku/api/collaborators.rb
heroku-api-0.3.18 lib/heroku/api/collaborators.rb
heroku-api-0.3.17 lib/heroku/api/collaborators.rb
heroku-api-0.3.16 lib/heroku/api/collaborators.rb