requestVoiceCode static method
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);
}