getPassword method
Implementation
Future<String> getPassword(String id) async {
final url = Uri.parse('${baseUrl}api/servers/$id/password');
final response = await client.get(url);
if (response.statusCode != 200) {
throw MailosaurError(response);
}
final data = jsonDecode(response.body);
return data['value'];
}