requestVoiceCode static method

Future requestVoiceCode(
  1. String mobile
)

Requests to send the verification code via phone call.

Implementation

static Future requestVoiceCode(String mobile) async {
  String path = 'requestSmsCode';
  Map<String, dynamic> data = {
    'mobilePhoneNumber': mobile,
    'smsType': 'voice'
  };
  await LeanCloud._httpClient.post(path, data: data);
}