otp flow
This commit is contained in:
23
lib/features/OTP/Repository/OTP_API.dart
Normal file
23
lib/features/OTP/Repository/OTP_API.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import '../../../../Api_Helper/base_manager.dart';
|
||||
import '../../../../shared/api/api_endpoints.dart';
|
||||
import '../../../../shared/api/network_api_services.dart';
|
||||
|
||||
class OTPAPI {
|
||||
OTPAPI();
|
||||
Future<ResponseData> RequestOTP(Map<String, dynamic> data) async {
|
||||
String url = ApiEndpoints.requestotpapi;
|
||||
final response = await NetworkApiService().post(url, data);
|
||||
return response;
|
||||
}
|
||||
Future<ResponseData> ResendOTPRequest(Map<String, dynamic> data) async {
|
||||
String url = ApiEndpoints.requestresendotp;
|
||||
final response = await NetworkApiService().post(url, data);
|
||||
return response;
|
||||
}
|
||||
|
||||
Future<ResponseData> VerifyOTP(Map<String, dynamic> data) async {
|
||||
String url = ApiEndpoints.verifyotp;
|
||||
final response = await NetworkApiService().post(url, data);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user