Class UserAPI
User API
This is the main class to communicate with LoginRadius Customer Registration Authentication API.
Located at LoginRadiusSDK/CustomerRegistration/Authentication/UserAPI.php
public
|
|
public
{"isPosted":
|
#
registerByEmail( $payload, string $verification_url = '', string $email_template = '', string $options = '', $fields = '*' )
This API creates a user in the database as well as sends a verification email to the user. |
public
type
|
#
authLoginByEmail( $payload, string $verification_url = '', string $login_url = '', string $email_template = '', string $g_recaptcha_response = '', $fields = '*' )
This API retrieves a copy of the user data based on the Email. |
public
type
|
#
authLoginByUsername( $payload, string $verification_url = '', string $login_url = '', string $email_template = '', string $g_recaptcha_response = '', $fields = '*' )
This API retrieves a copy of the user data based on the username. |
public
type
|
|
public
type
|
#
forgotPassword( $email, $reset_password_url, $email_template = '', $fields = '*' )
Forgot password |
public
type
|
|
public
type
|
|
public
userprofile
|
|
public
userprofile
|
#
privacyPolicyAccept( $access_token, $fields = '*' )
This API is used update the privacy policy stored in the user's profile. |
public
IsPosted
|
#
sendWelcomeEmail( $access_token, $welcome_email_template = '', $fields = '*' )
This API will send welcome email. |
public
type
|
|
public
object
|
#
checkTokenValidity( $access_token, $fields = '*' )
Validates access token,if valid then returns a response with its expiry otherwise error |
public
type
|
|
public
type
|
|
public
"IsPosted":
|
#
invalidateTokenByAccessToken( $access_token, $fields = '*' )
Invalidates access token or expires an access token validity. |
public
type
|
#
getSecurityQuestionsByAccessToken( string $access_token, $fields = '*' )
This API is used to retrieve the list of questions using access token. |
public
type
|
#
getSecurityQuestionsByEmail( type $email, type $fields = '*' )
This API is used to retrieve the list of questions using email. |
public
type
|
#
getSecurityQuestionsByUserName( string $username, $fields = '*' )
This API is used to retrieve the list of questions using username. |
public
type
|
#
getSecurityQuestionsByPhone( string $phone, $fields = '*' )
This API is used to retrieve the list of questions using phone id. |
public
type
|
#
verifyEmailByOtp( $payload, $url = '', $welcome_email_template = '', $fields = '*' )
Verify email by OTP . |
public
|
|
public
type
|
|
public
{"isPosted":
|
#
resendEmailVerification( $email, string $verification_url = '', string $email_template = '', $fields = '*' )
This api used to resend email verification link. |
public
type
|
#
resetPassword( $reset_token, $password, string $welcome_email_template = '', string $reset_password_email_template = '', $fields = '*' )
Reset Password by reset token. |
public
type
|
#
resetPasswordByOtp( $password, $otp, $email, $welcome_email_template = '', $reset_password_email_template = '', $fields = '*' )
Reset Password by OTP. |
public
{"IsPosted"
|
#
authResetPasswordBySecurityAnswerAndEmail( $payload, $fields = '*' )
This API is used to reset password for the specified account By email. |
public
{"IsPosted"
|
#
authResetPasswordBySecurityAnswerAndPhone( $payload, $fields = '*' )
This API is used to reset password for the specified account By phone. |
public
{"IsPosted"
|
#
authResetPasswordBySecurityAnswerAndUserName( $payload, $fields = '*' )
This API is used to reset password for the specified account By UserName. |
public
type
|
|
public
type
|
#
updateProfile( $access_token, $payload, string $verification_url = '', string $email_template = '', string $sms_template = '', $fields = '*' )
Update user profile by access token. |
public
type
|
#
updateSecurityQuestionByAccessToken( string $access_token, $payload, $fields = '*' )
This API is used to update security questions by the access token. |
public
type
|
#
deleteAccountByEmailConfirmation( $access_token, string $delete_url = '', string $email_template = '', $fields = '*' )
Delete account after email confirmation. |
public
type
|
|
public
type
|
|
public
type
|
#
validateRegistrationDataCode( json $payload, $fields = '*' )
This API allows you to validate code for a particular dropdown member. |
public
type
|
#
authGetRegistrationDataServer( $type, string $parent_id = '', string $skip = '', string $limit = '', $fields = '*' )
This API is used to retrieve dropdown data. |
public
type
|
#
passwordLessLoginByEmail( $email, string $verificationurl = '', string $passwordlesslogintemplate = '' )
This API is used to send a Passwordless Login verification link to the provided Email ID. |
public
type
|
#
passwordLessLoginByUserName( $username, string $verificationurl = '', string $passwordlesslogintemplate = '' )
This API is used to send a Passwordless Login Verification Link to a user by providing their UserName. |
public
type
|
#
passwordLessLoginVerification( $verificationtoken, string $welcomeemailtemplate = '' )
This API is used to verify the Passwordless Login verification link. |
public
type
|
|
public
type
|
#
phoneLoginByOtp( $data, $sms_template = '' )
This API verifies an account by OTP and allows the user to login. |
public
type
|
#
smartLoginByEmail( type $clientguid, type $email, type $smartloginemailtemplate = "", type $welcomeemailtemplate = "", type $redirecturl = "" )
This API sends a Smart Login link to the user's Email Id. |
public
type
|
#
smartLoginByUserName( type $clientguid, type $username, type $smartloginemailtemplate = "", type $welcomeemailtemplate = "", type $redirecturl = "" )
This API sends a Smart Login link to the user's Email Id. |
public
type
|
#
smartLoginPing( type $clientguid )
This API is used to check if the Smart Login link has been clicked or not. |
public
type
|
#
smartLoginVerifyToken( type $verificationtoken, type $welcomeemailtemplate = "" )
This API verifies the provided token for Smart Login. |
public
{"isPosted"
|
#
oneTouchLoginByEmail( $payload, type $redirecturl = '', type $onetouchloginemailtemplate = '', type $welcomeemailtemplate = '' )
This API is used to send a link to a specified email for a frictionless login/registration |
public
type
|
#
oneTouchLoginByPhone( $payload, string $smstemplate = '' )
This API is used to send one time password to a given phone number for a frictionless login/registration. |
public
type
|
#
oneTouchOtpVerification( $otp, $phone, $sms_template = '' )
This API is used to verify the otp for One Touch Login. |
public
type
|
#
authLoginByPhone( $payload, string $login_url = '', string $sms_template = '', string $g_recaptcha_response = '', $fields = '*' )
This API retrieves a copy of the user data based on the Phone. |
public
type
|
|
public
type
|
|
public
type
|
|
public
{"isPosted":
|
#
registerByPhone( $payload, string $verification_url = '', string $sms_template = '', $options = '' )
This API used to register a user using phone. |
public
type
|
|
public
type
|
|
public
type
|
#
phoneResetPasswordByOtp( $phone, $otp, $password, $sms_template = '', $reset_password_email_template = '' )
Phone reset password by OTP. |
public
type
|
|
public
type
|
|
public
type
|
|
public
type
|
#
mfaEmailLogin( $payload, string $login_url = '', string $verification_url = '', string $email_template = '', string $sms_template_2fa = '', $fields = '*' )
This API used to provide multi factor login with email/password combination. |
public
type
|
#
mfaUserNameLogin( $payload, string $login_url = '', string $verification_url = '', string $email_template = '', string $sms_template_2fa = '', $fields = '*' )
This API used to provide multi factor login with username/password combination. |
public
type
|
#
mfaPhoneLogin( $payload, string $login_url = '', string $verification_url = '', string $sms_template = '', string $sms_template_2fa = '', $fields = '*' )
This API used to provide multi factor login with phone/password combination. |
public
type
|
#
mfaValidateAccessToken( $access_token, string $sms_template_2fa = '', $fields = '*' )
MFA Validate Access Token This API is used to configure the multi-factor-authentication after login by using the access token |
public
type
|
#
getBackupCodeForLoginbyAccessToken( type $access_token, $fields = '*' )
MFA Backup Code by Access Token |
public
type
|
#
resetBackupCodebyAccessToken( type $access_token, $fields = '*' )
Reset Back Up code by access token |
public
type
|
#
getLoginbyBackupCode( type $second_factor_auth_token, type $backupcode, $fields = '*' )
MFA Validate Backup code |
public
type
|
#
mfaValidateOtp( $second_factor_auth_token, $payload, string $sms_template_2fa = '', $fields = '*' )
This API is used to log in by completing the multi-factor-authentication by passing the one time passcode. |
public
type
|
#
mfaValidateGoogleAuthCode( $second_factor_auth_token, $google_auth_code, $sms_template_2fa = '', $fields = '*' )
This API is used to log in by completing the multi-factor-authentication by passing the google authenticator code. |
public
type
|
#
mfaUpdatePhoneNo( $second_factor_auth_token, $phoneno2fa, string $sms_template_2fa = '' )
This API is used to update the multi-factor-authentication phone number by sending the verification OTP to the provided phone number. |
public
type
|
#
mfaUpdatePhoneNoByToken( $access_token, $phoneno2fa, string $sms_template_2fa = '' )
This API is used to update the multi-factor-authentication phone number by sending the access token to the provided phone number. |
public
type
|
#
updateMfaByGoogleAuthCode( $access_token, $google_auth_code, string $sms_template = '', $fields = '*' )
Update MFA by Access Token This API is used to Enable Multi-factor authentication by access token on user login. |
public
type
|
#
updateMfaByOtp( $access_token, $payload, string $sms_template = '', $fields = '*' )
Update MFA Setting This API is used to trigger the Multi-factor authentication settings after login for secure actions. |
public
{"IsDeleted":
|
#
resetGoogleAuthenticatorByToken( $access_token, $googleauthenticator, $fields = '*' )
MFA Reset Google Authenticator by Token This API Removes/Reset Google Authenticator By Token. |
public
"IsDeleted":
|
#
resetSMSAuthenticatorByToken( $access_token, $otpauthenticator, $fields = '*' )
MFA Reset SMS Authenticator by Token This API Removes/Reset SMS Authenticator By Token. |
public
type
|
#
mfaReAuthentiation( $access_token, $sms_template_2fa = '', $fields = '*' )
Multi Factor Re-Authenticate This API can be used to trigger Multi-Factor Autentication workflow for the provided access_token. |
public
type
|
#
validateMfaByGoogleAuthCode( $access_token, $google_authenticator, $fields = '*' )
Validate MFA by Google Authenticator Code This API is used to re-authenticate via Multi-factor-authentication by passing the google authenticator code. |
public
type
|
#
validateMfaByBackupCode( $access_token, $backupcode, $fields = '*' )
Validate MFA by Backup Code This API is used to re-authenticate by set of backup codes via access token. |
public
type
|
#
validateMfaByOtp( $access_token, $payload, string $sms_template_2fa = '', $fields = '*' )
Validate MFA by OTP This API is used to re-authenticate via Multi-factor authentication by passing the One Time Password received via SMS. |
public
type
|
#
validateMfaByPassword( $access_token, $payload, string $sms_template_2fa = '', $fields = '*' )
This API can be used to verify event based multi factor authentication by Password. |