Send Password Recovery

WCF


Method
public AuthServerResponse SendPasswordRecovery(string authServerPartnerLoginName,
		string authServerPartnerLoginPassword)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerLoginPasswordstringUsername to send recovery password
Sample WCF C# Method
AuthServerResponseresp = SendPasswordRecovery("accountLogin",
            "accountKey",
            "Mandy"
           );
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
emailstringUsers email that needs password recovery 
typestringsend_password_recovery
fromEmailNamestringName of sender of password recovery email
fromEmailAddressstringAddress of sender of password recovery email
emailSubjectstringSubject of password recovery email
emailBodystring

Body of password recovery email

htmlbooleanWhether password recovery email is HTML formatted
Sample REST/Json Request
{
 "username": "{{username}}",
 "spAccountLoginName": "{{spAccountLoginName}}",
 "spAccountLoginKey": "{{spAccountLoginKey}}",
 "type": "send_password_recovery",
 "email": "Mandy@yourco.com", 
 "fromEmailName": "John Denver",
 "fromEmailAddress": "john.denver@example.com",
 "emailSubject": "Resetting your password",
 "emailBody": "Let us help you reset your password.",
 "html": 1
}
Sample REST/Json Response
 {  
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "send_password_recovery"
  }