confirmEmailOrMobile static method
Implementation
static Future<Response> confirmEmailOrMobile({
String email = "",
String mobileno = "",
String otp = "",
String token = "",
}) async {
String url =
"${AppUrls.baseUrlVSMS}/subscriberv2/v1/subscriber/emailconfirm" /*:"${AppUrls.baseUrlVSMS}/subscriberv2/v1/verifyuser"*/;
var body = {
"email": email.isEmpty ? null : email,
"mobileno": mobileno.isEmpty ? null : mobileno,
"token": token.isEmpty ? null : token,
"otp": otp.isEmpty ? null : otp
};
body['providerid'] = DeviceRegistration.providerid;
final response = await _dio!.post(url, data: body);
return response;
}