GetTemplateById

Gets a template by ID

This method returns a saved template within your account by its ID.

SOAP action: http://apiconnector.com/v2/ApiService/GetTemplateById

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Template ID - required; integer

Output parameters

  • GetTemplateByIdResult
    • Id - integer
    • Name - string
    • Subject - string
    • FromName - string
    • HtmlContent - string
    • PlainTextContent - string
    • ReplyAction - string (Unset', 'WebMailForward', 'Webmail', 'Delete')
    • ReplyToAddress - string

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var templateId = 1;
	var template = client.GetTemplateById(templateId);
}