From 93ce8ab9a68b37af7f9594cb94c2906a4099e728 Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Tue, 3 Dec 2024 17:48:45 -0300 Subject: [PATCH] WIP --- lib/backend/api_requests/api_calls.dart | 30 ------------------------- 1 file changed, 30 deletions(-) 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 {