Module: Ruby::Identitas::Endpoints::Internal::InviteUser

Included in:
Main
Defined in:
lib/ruby/identitas/endpoints/internal/invite_user.rb

Instance Method Summary collapse

Instance Method Details

#user_invite(options = {}, headers = {}) ⇒ Object



6
7
8
9
10
# File 'lib/ruby/identitas/endpoints/internal/invite_user.rb', line 6

def user_invite(options = {}, headers = {})
  headers.merge!({AuthKey: @api_key})
  endpoint = build_endpoint("/v1/internal/users/invite")
  self.class.post(endpoint, query: options, headers: headers)
end