lib/API/TemplatesApi.php
/**
     * Operation renderTemplate
     *
     * Render Template
     *
     * @param  string $template_id template_id (required)
     * @param  string $context This is the context your email template will be rendered with. Email templates are rendered with contexts in a similar manner to how Django templates are rendered. This means that nested template variables can be referenced via dot notation and template variables without corresponding context values are treated as falsy and output nothing. (optional, default to '{ "name" : "George Washington", "state" : "VA" }')
     *
     * @throws \Klaviyo\ApiException on non-2xx response
     * @throws \InvalidArgumentException
     * @return array<string,object>
     */
Operation renderTemplate
Render Template

@param  string $template_id template_id (required)
@param  string $context This is the context your email template will be rendered with. Email templates are rendered with contexts in a similar manner to how Django templates are rendered. This means that nested template variables can be referenced via dot notation and template variables without corresponding context values are treated as falsy and output nothing.

@throws \Klaviyo\ApiException on non-2xx response
@throws \InvalidArgumentException
@return array
Operation renderTemplate Render Template @param string $template_id template_id ( required ) @param string $context This is the context your email template will be rendered with . Email templates are rendered with contexts in a similar manner to how Django templates are rendered . This means that nested template variables can be referenced via dot notation and template variables without corresponding context values are treated as falsy and output nothing . @throws \ Klaviyo \ ApiException on non - 2xx response @throws \ InvalidArgumentException @return array
public function renderTemplate($template_id, $context = '{ "name" : "George Washington", "state" : "VA" }')
    {
        list($response) = $this->renderTemplateWithHttpInfo($template_id, $context);
        return $response;
    }
public function renderTemplate ( $ template_id , $ context = '{ "name" : "George Washington", "state" : "VA" }' ) { list ( $ response ) = $ this -> renderTemplateWithHttpInfo ( $ template_id , $ context ) ; return $ response ; }
Operation renderTemplate
 Render Template
Operation renderTemplate Render Template