api constants updated
This commit is contained in:
parent
5185b13694
commit
37c248c36f
|
@ -141,7 +141,9 @@ class ApiCall {
|
||||||
'type': type ?? 1,
|
'type': type ?? 1,
|
||||||
});
|
});
|
||||||
// "end": DateTime(2024, 12, 14).toIso8601String(),
|
// "end": DateTime(2024, 12, 14).toIso8601String(),
|
||||||
|
token = await _prefs.then((SharedPreferences prefs) {
|
||||||
|
return prefs.getString('token') ?? "";
|
||||||
|
});
|
||||||
print("SAVED TOKEN :${token}");
|
print("SAVED TOKEN :${token}");
|
||||||
|
|
||||||
//http://192.168.2.130/konectar-staging/apiauths/logout/
|
//http://192.168.2.130/konectar-staging/apiauths/logout/
|
||||||
|
@ -734,9 +736,9 @@ class ApiCall {
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
response = await dio.post(
|
response = await dio.post(
|
||||||
'http://192.168.2.130/konectar-staging/apiauths/getVerificationCode/',
|
//'http://192.168.2.130/konectar-staging/apiauths/getVerificationCode/',
|
||||||
//'https://cardio-staging.konectar.io/apiauths/getVerificationCode/',
|
//'https://cardio-staging.konectar.io/apiauths/getVerificationCode/',
|
||||||
//'${url}${EventsConstants.loginmodule}/${EventsConstants.getVerificationCode}',
|
'${url}${EventsConstants.loginmodule}/${EventsConstants.getVerificationCode}',
|
||||||
options: Options(),
|
options: Options(),
|
||||||
data: formData);
|
data: formData);
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
|
@ -773,8 +775,8 @@ class ApiCall {
|
||||||
print("LOGIN : API http://192.168.2.130/konectar-staging/apiauths/login");
|
print("LOGIN : API http://192.168.2.130/konectar-staging/apiauths/login");
|
||||||
response = await dio.post(
|
response = await dio.post(
|
||||||
//'http://192.168.2.130/konectar-staging/apiauths/login',
|
//'http://192.168.2.130/konectar-staging/apiauths/login',
|
||||||
'http://192.168.2.130/konectar-staging/apiauths/login/',
|
//'http://192.168.2.130/konectar-staging/apiauths/login/',
|
||||||
// '${EventsConstants.loginUrl}${EventsConstants.login}',
|
'${EventsConstants.loginUrl}${EventsConstants.login}',
|
||||||
options: Options(),
|
options: Options(),
|
||||||
data: formData);
|
data: formData);
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
|
@ -809,8 +811,8 @@ class ApiCall {
|
||||||
"device_id": deviceid,
|
"device_id": deviceid,
|
||||||
});
|
});
|
||||||
response = await dio.post(
|
response = await dio.post(
|
||||||
'http://192.168.2.130/konectar-staging/apiauths/logout/',
|
//'http://192.168.2.130/konectar-staging/apiauths/logout/',
|
||||||
// '${EventsConstants.loginUrl}${EventsConstants.logout}',
|
'${EventsConstants.loginUrl}${EventsConstants.logout}',
|
||||||
options: Options(
|
options: Options(
|
||||||
followRedirects: true,
|
followRedirects: true,
|
||||||
validateStatus: (status) => true,
|
validateStatus: (status) => true,
|
||||||
|
|
|
@ -26,7 +26,7 @@ class EventsConstants {
|
||||||
|
|
||||||
static const String stagingUrl =
|
static const String stagingUrl =
|
||||||
"https://cardio-staging.konectar.io/$moduleName/";
|
"https://cardio-staging.konectar.io/$moduleName/";
|
||||||
static const String url = devUrl;
|
static const String url = stagingUrl;
|
||||||
|
|
||||||
static const String devUrl =
|
static const String devUrl =
|
||||||
"http://192.168.2.130/konectar-staging/$moduleName/";
|
"http://192.168.2.130/konectar-staging/$moduleName/";
|
||||||
|
|
|
@ -94,7 +94,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||||
|
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
|
|
||||||
deviceId = "device123456789hhuuww";
|
deviceId = "stagingdevice123456789hhuuww";
|
||||||
print("DEVICE ID########################## :$deviceId");
|
print("DEVICE ID########################## :$deviceId");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue