diff --git a/lib/backend/api_requests/api_calls.dart b/lib/backend/api_requests/api_calls.dart index ca2f5d9c..c07b24de 100644 --- a/lib/backend/api_requests/api_calls.dart +++ b/lib/backend/api_requests/api_calls.dart @@ -58,7 +58,6 @@ class PhpGroup { static GetVehiclesByProperty getVehiclesByProperty = GetVehiclesByProperty(); static GetResidentsByProperty getResidentsByProperty = GetResidentsByProperty(); static GetOpenedVisits getOpenedVisits = GetOpenedVisits(); - static TestCall testCall = TestCall(); static GetLicense getLicense = GetLicense(); } @@ -156,37 +155,8 @@ class GetVehiclesByProperty { } static GetLicense getLicense = GetLicense(); - static TestCall testCall = TestCall(); } -class TestCall { - Future call() async { - const String accessKey = 'af7483f'; - const String usuEmail = 'email_app@exemplo.com'; - const String idDestino = '1'; - - return await ApiManager.instance.makeApiCall( - callName: 'getLicense', - apiUrl: 'https://residenceapi.fre.com.br/getLicenca.php', - callType: ApiCallType.POST, - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - }, - params: { - 'AccessKey': accessKey, - 'UsuEmail': usuEmail, - 'idDestino': idDestino, - }, - bodyType: BodyType.X_WWW_FORM_URL_ENCODED, - returnBody: true, - encodeBodyUtf8: false, - decodeUtf8: false, - cache: false, - isStreamingApi: false, - alwaysAllowBody: false, - ); - } -} class GetLicense { Future call() async {