lib/fusionauth/fusionauth_client.rb in fusionauth_client-1.12.0 vs lib/fusionauth/fusionauth_client.rb in fusionauth_client-1.12.1

- old
+ new

@@ -96,11 +96,11 @@ # @param change_password_id [string] The change password Id used to find the user. This value is generated by FusionAuth once the change password workflow has been initiated. # @param request [OpenStruct, Hash] The change password request that contains all of the information used to change the password. # @return [FusionAuth::ClientResponse] The ClientResponse object. # def change_password(change_password_id, request) - startAnonymous.uri('/api/user/change-password') + start.uri('/api/user/change-password') .url_segment(change_password_id) .body_handler(FusionAuth::JSONBodyHandler.new(request)) .post() .go() end @@ -806,11 +806,11 @@ # # @param request [OpenStruct, Hash] The request that contains the information about the user so that they can be emailed. # @return [FusionAuth::ClientResponse] The ClientResponse object. # def forgot_password(request) - startAnonymous.uri('/api/user/forgot-password') + start.uri('/api/user/forgot-password') .body_handler(FusionAuth::JSONBodyHandler.new(request)) .post() .go() end @@ -1398,11 +1398,11 @@ # # @param email [string] The email address of the user that needs a new verification email. # @return [FusionAuth::ClientResponse] The ClientResponse object. # def resend_email_verification(email) - startAnonymous.uri('/api/user/verify-email') + start.uri('/api/user/verify-email') .url_parameter('email', email) .put() .go() end @@ -1412,10 +1412,10 @@ # @param email [string] The email address of the user that needs a new verification email. # @param application_id [string] The Id of the application to be verified. # @return [FusionAuth::ClientResponse] The ClientResponse object. # def resend_registration_verification(email, application_id) - startAnonymous.uri('/api/user/verify-registration') + start.uri('/api/user/verify-registration') .url_parameter('email', email) .url_parameter('applicationId', application_id) .put() .go() end