getEmailTemplate method

Future<GetEmailTemplateResponse> getEmailTemplate({
  1. required String templateName,
})

Displays the template object (which includes the subject line, HTML part and text part) for the template you specify.

You can execute this operation no more than 50 times per second.

May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter templateName : The name of the template.

Implementation

Future<GetEmailTemplateResponse> getEmailTemplate({
  required String templateName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/email/templates/${Uri.encodeComponent(templateName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetEmailTemplateResponse.fromJson(response);
}