getUserEmail method
Returns a user's email address. This API is only available to apps approved by Atlassian, according to these guidelines.
Implementation
Future<UnrestrictedUserEmail> getUserEmail(String accountId) async {
return UnrestrictedUserEmail.fromJson(await _client.send(
'get',
'rest/api/3/user/email',
queryParameters: {
'accountId': accountId,
},
));
}