confirmEmailOrMobile static method

Future<Response> confirmEmailOrMobile({
  1. String email = "",
  2. String mobileno = "",
  3. String otp = "",
  4. String token = "",
})

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;
}