Sha256: 4ae85f3cc87d3e290d1f787eaddb879a77e80ad9d67ec4ea99a9a34621ddc580

Contents?: true

Size: 763 Bytes

Versions: 1

Compression:

Stored size: 763 Bytes

Contents

module Heroku
  class API

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

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pogoapp-api-0.3.8 lib/heroku/api/collaborators.rb