| POST | /Account/Recovery/Verify |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class RecoveryVerify
{
public String RecoveryId = null;
public String Email = null;
public String EmailCode = null;
public String MobileCode = null;
public Boolean EmailNeedsVerification = null;
public Boolean MobileNeedsVerification = null;
public String getRecoveryId() { return RecoveryId; }
public RecoveryVerify setRecoveryId(String value) { this.RecoveryId = value; return this; }
public String getEmail() { return Email; }
public RecoveryVerify setEmail(String value) { this.Email = value; return this; }
public String getEmailCode() { return EmailCode; }
public RecoveryVerify setEmailCode(String value) { this.EmailCode = value; return this; }
public String getMobileCode() { return MobileCode; }
public RecoveryVerify setMobileCode(String value) { this.MobileCode = value; return this; }
public Boolean isEmailNeedsVerification() { return EmailNeedsVerification; }
public RecoveryVerify setEmailNeedsVerification(Boolean value) { this.EmailNeedsVerification = value; return this; }
public Boolean isMobileNeedsVerification() { return MobileNeedsVerification; }
public RecoveryVerify setMobileNeedsVerification(Boolean value) { this.MobileNeedsVerification = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Account/Recovery/Verify HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RecoveryVerify xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.Accounts">
<Email>String</Email>
<EmailCode>String</EmailCode>
<EmailNeedsVerification>false</EmailNeedsVerification>
<MobileCode>String</MobileCode>
<MobileNeedsVerification>false</MobileNeedsVerification>
<RecoveryId>String</RecoveryId>
</RecoveryVerify>