getTemplatePreviewHtmlWithHttpInfo method

Future<Response> getTemplatePreviewHtmlWithHttpInfo(
  1. String templateId
)

Get template preview HTML

Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params.

Note: This method returns the HTTP Response.

Parameters:

  • String templateId (required): Template ID

Implementation

Future<Response> getTemplatePreviewHtmlWithHttpInfo(String templateId,) async {
  // ignore: prefer_const_declarations
  final path = r'/templates/{templateId}/preview/html'
    .replaceAll('{templateId}', templateId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}