getWStatusGetResponse method
Implementation
Future<bool> getWStatusGetResponse(
HttpClient httpClient, String tunnel, String keyApp) async {
Map<String, String> requestHeaders = {
'Content-type': 'application/json',
};
var response;
try {
String map = '{"method": "' +
DnaIdentityRequest.METHOD_NAME +
'", "params": [], "id": 101, "key": "' +
keyApp +
'"}';
response = await httpClient.request(tunnel,
method: 'POST', data: map, headers: requestHeaders);
print(response.text);
if (response.status == 200) {}
} catch (e) {
print("e: " + e.toString());
}
return true;
}