This commit is contained in:
J. A. Messias 2024-12-03 17:48:45 -03:00
parent cf8ce52fd7
commit 93ce8ab9a6
1 changed files with 0 additions and 30 deletions

View File

@ -58,7 +58,6 @@ class PhpGroup {
static GetVehiclesByProperty getVehiclesByProperty = GetVehiclesByProperty(); static GetVehiclesByProperty getVehiclesByProperty = GetVehiclesByProperty();
static GetResidentsByProperty getResidentsByProperty = GetResidentsByProperty(); static GetResidentsByProperty getResidentsByProperty = GetResidentsByProperty();
static GetOpenedVisits getOpenedVisits = GetOpenedVisits(); static GetOpenedVisits getOpenedVisits = GetOpenedVisits();
static TestCall testCall = TestCall();
static GetLicense getLicense = GetLicense(); static GetLicense getLicense = GetLicense();
} }
@ -156,37 +155,8 @@ class GetVehiclesByProperty {
} }
static GetLicense getLicense = GetLicense(); static GetLicense getLicense = GetLicense();
static TestCall testCall = TestCall();
} }
class TestCall {
Future<ApiCallResponse> 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 { class GetLicense {
Future<ApiCallResponse> call() async { Future<ApiCallResponse> call() async {