getTemplatePreviewJsonWithHttpInfo method
Get template preview Json
Get email template preview with passed template variables in JSON format. Pass template variables as query params.
Note: This method returns the HTTP Response
.
Parameters:
- String templateId (required): Template ID
Implementation
Future<Response> getTemplatePreviewJsonWithHttpInfo(String templateId,) async {
// ignore: prefer_const_declarations
final path = r'/templates/{templateId}/preview/json'
.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,
);
}