fetchEmail method

Future<Message> fetchEmail(
  1. int id
)

Get the contents of an email.

Notes:

Implementation

Future<Message> fetchEmail(
  /// The id of the email to fetch
  int id,
) async {
  final response = await _doRequest(
    call: 'fetch_email',
    queryParameters: {
      'email_id': id.toString(),
    },
  );
  return Message.fromJson(jsonDecode(response.body));
}