Sha256: 6f65f840fd01678313038428cb1d0aa23b9422bbe500b63000a7a3d0e5199829

Contents?: true

Size: 435 Bytes

Versions: 19

Compression:

Stored size: 435 Bytes

Contents

module DiscourseApi
  module API
    module Invite
      def invite_user(params={})
        post("/invites", params)
      end

      def invite_user_to_topic(params={})
        post("/t/#{params[:topic_id]}/invite", params)
      end

      # requires this plugin => https://github.com/discourse/discourse-invite-tokens
      def disposable_tokens(params={})
        post("/invite-token/generate", params)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
discourse_api-0.34.0 lib/discourse_api/api/invite.rb
discourse_api-0.33.0 lib/discourse_api/api/invite.rb
discourse_api-0.32.0 lib/discourse_api/api/invite.rb
discourse_api-0.31.0 lib/discourse_api/api/invite.rb
discourse_api-0.30.0 lib/discourse_api/api/invite.rb
discourse_api-0.29.0 lib/discourse_api/api/invite.rb
discourse_api-0.28.1 lib/discourse_api/api/invite.rb
discourse_api-0.28.0 lib/discourse_api/api/invite.rb
discourse_api-0.27.0 lib/discourse_api/api/invite.rb
discourse_api-0.26.0 lib/discourse_api/api/invite.rb
discourse_api-0.25.0 lib/discourse_api/api/invite.rb
discourse_api-0.24.0 lib/discourse_api/api/invite.rb
discourse_api-0.23.1 lib/discourse_api/api/invite.rb
discourse_api-0.23.0 lib/discourse_api/api/invite.rb
discourse_api-0.22.0 lib/discourse_api/api/invite.rb
discourse_api-0.20.1 lib/discourse_api/api/invite.rb
discourse_api-0.20.0 lib/discourse_api/api/invite.rb
discourse_api-0.19.0 lib/discourse_api/api/invite.rb
discourse_api-0.18.0 lib/discourse_api/api/invite.rb