WIP
This commit is contained in:
parent
cf8ce52fd7
commit
93ce8ab9a6
|
@ -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<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 {
|
||||
Future<ApiCallResponse> call() async {
|
||||
|
|
Loading…
Reference in New Issue