public function previewTemplate( $templateId, $personalisation){
        $path = sprintf( self::PATH_TEMPLATE_PREVIEW, $templateId );
        $payload = [
          'personalisation'=>$personalisation
        ];
        return $this->httpPost( $path, $payload );
    }
public function previewTemplate( $templateId, $personalisation){
        $path = sprintf( self::PATH_TEMPLATE_PREVIEW, $templateId );
        $payload = [
          'personalisation'=>$personalisation
        ];
        return $this->httpPost( $path, $payload );
    }
public function previewTemplate ( $ templateId , $ personalisation ) { $ path = sprintf ( self :: PATH_TEMPLATE_PREVIEW , $ templateId ) ; $ payload = [ 'personalisation' => $ personalisation ] ; return $ this -> httpPost ( $ path , $ payload ) ; }
Get a preview of a template

@return array
Get a preview of a template