getAppDetails method
Implementation
Future<GetAppDetailsResponseDto> getAppDetails(
String apiKey, {
required String appId,
required String releaseLabelId,
}) async {
final String url = '$channel/api/v1/mdm/apps/$appId/labels/$releaseLabelId';
final response = await http.get(
Uri.parse(url),
headers: {
'Authorization': 'Zoho-oauthtoken $apiKey',
'Content-Type': 'application/json;charset=UTF-8',
},
);
if (!response.statusCode.isSuccessful) {
throw MdmEngineException(
method: response.request?.method,
url: url,
statusCode: response.statusCode,
error: response.body,
);
}
return GetAppDetailsResponseDto.fromJson(
jsonDecode(
response.body,
),
);
}