EmailLoginAsync

Issues an async Http POST to the authentication endpoint (/token) using email-based login. Returns (Task<Tuple<System.Boolean, System.String, System.String».)

Overview of EmailLoginAsync goes here.

Name Description
email The email address of the user.
password The password.
newPassword Optional parameter, used to supply a new password for a valid user, when the user must change password on next login.
onetimePassword Optional parameter, used if the user has enabled Two Factor Authentication.
sendOnetimePassword if set to true and a valid email and password have been provided, then a One Time Password will be calculated and sent by SMS text to the Mobile phone of the user.

Email Login Async

Example in C#

// Returns: String
var item = await client.EmailLoginAsync(String email, String password, String newPassword, String onetimePassword, Boolean sendOnetimePassword);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/token \
               -H 'Content-Type: application/x-www-form-urlencoded' \
               -d 'email=USER%40EXAMPLE.COM&password=YOURPASSWORD&sendonetimepassword=false'