getPtssss method
dynamic
getPtssss()
Implementation
getPtssss() async {
var sessionIds = CoreDb.instance().getSessionId();
var uri = Uri.parse(
'${APIMode.BASE_URL}api/v1/subscription/access?sessionId=$sessionIds' +
'clientId=${ConscentInitializer.mClientId}');
print(uri);
print('sesiondataaaaaaaaa');
var response = await http.get(uri);
if (response.statusCode == 200) {
dataMains = jsonDecode(response.body);
print("dataMains");
print(dataMains);
print("dataMains");
setState(() {});
} else {
ConscentMethods().onPluginError(response.body);
throw Exception('Failed to load album');
}
}