Sha256: 98952acdc7826137b14defc0fdea64051b8f09d78eeb66badd2a9373115c7f3d

Contents?: true

Size: 742 Bytes

Versions: 23

Compression:

Stored size: 742 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/#{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

23 entries across 23 versions & 1 rubygems

Version Path
heroku-api-0.2.9 lib/heroku/api/collaborators.rb
heroku-api-0.2.8 lib/heroku/api/collaborators.rb
heroku-api-0.2.7 lib/heroku/api/collaborators.rb