clients/kratos/ruby/lib/ory-kratos-client/api/v0alpha1_api.rb
# Create a Recovery Link
# This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
# @param [Hash] opts the optional parameters
# @option opts [AdminCreateSelfServiceRecoveryLinkBody] :admin_create_self_service_recovery_link_body 
# @return [Array<(SelfServiceRecoveryLink, Integer, Hash)>] SelfServiceRecoveryLink data, response status code and response headers
Create a Recovery Link
This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
Create a Recovery Link This endpoint creates a recovery link which should be given to the user in order for them to recover ( or activate ) their account .
def admin_create_self_service_recovery_link_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.admin_create_self_service_recovery_link ...'
      end
      local_var_path = '/recovery/link'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'admin_create_self_service_recovery_link_body'])
      return_type = opts[:debug_return_type] || 'SelfServiceRecoveryLink'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"V0alpha1Api.admin_create_self_service_recovery_link",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#admin_create_self_service_recovery_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def admin_create_self_service_recovery_link_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: V0alpha1Api.admin_create_self_service_recovery_link ...' end local_var_path = '/recovery/link' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( opts [ :' admin_create_self_service_recovery_link_body ' ] ) return_type = opts [ :debug_return_type ] || 'SelfServiceRecoveryLink' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" V0alpha1Api.admin_create_self_service_recovery_link " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: V0alpha1Api#admin_create_self_service_recovery_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create a Recovery Link
This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
Create a Recovery Link This endpoint creates a recovery link which should be given to the user in order for them to recover ( or activate ) their account .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
SelfServiceRecoveryLink data, response status code and response headers
SelfServiceRecoveryLink data response status code and response headers
Array<(SelfServiceRecoveryLink, Integer, Hash)>
opts
None
<not_specific>
opts the optional parameters
opts the optional parameters