requestOneTimeLoginKey method

Future<String> requestOneTimeLoginKey(
  1. String username
)

Generates one time login key for the given Voximplant username.

username - Full user name, including Voximplant user, application, and account name in the format user@application.account.voximplant.com.

Throws VIException, if an error occurred, otherwise returns one time key.

Errors:

Implementation

Future<String> requestOneTimeLoginKey(String username) async {
  try {
    return await _channel.invokeMethod('Client.requestOneTimeKey', username);
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}