All URIs are relative to https://rest.clicksend.com/v3
Method | HTTP request | Description |
---|---|---|
EmailTemplateDelete | DELETE /email/templates/{template_id} | Delete user email template |
EmailTemplateGet | GET /email/templates/{template_id} | Get specific user email template |
EmailTemplatePost | POST /email/templates | Create email template |
EmailTemplatePut | PUT /email/templates/{template_id} | Update email template |
EmailTemplatesGet | GET /email/templates | Get all user email templates |
string EmailTemplateDelete (int? templateId)
Delete user email template
Delete user email template
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class EmailTemplateDeleteExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UserEmailTemplatesApi();
var templateId = 56; // int? | Email template id
try
{
// Delete user email template
string result = apiInstance.EmailTemplateDelete(templateId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserEmailTemplatesApi.EmailTemplateDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | int? | Email template id |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string EmailTemplateGet (int? templateId)
Get specific user email template
Get specific user email templates
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class EmailTemplateGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UserEmailTemplatesApi();
var templateId = 56; // int? | Email template id
try
{
// Get specific user email template
string result = apiInstance.EmailTemplateGet(templateId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserEmailTemplatesApi.EmailTemplateGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | int? | Email template id |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string EmailTemplatePost (EmailTemplateNew body)
Create email template
Create email template
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class EmailTemplatePostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UserEmailTemplatesApi();
var body = new EmailTemplateNew(); // EmailTemplateNew | Email template model
try
{
// Create email template
string result = apiInstance.EmailTemplatePost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserEmailTemplatesApi.EmailTemplatePost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | EmailTemplateNew | Email template model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string EmailTemplatePut (EmailTemplateUpdate body, int? templateId)
Update email template
Update email template
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class EmailTemplatePutExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UserEmailTemplatesApi();
var body = new EmailTemplateUpdate(); // EmailTemplateUpdate | Email template model
var templateId = 56; // int? | Email template id
try
{
// Update email template
string result = apiInstance.EmailTemplatePut(body, templateId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserEmailTemplatesApi.EmailTemplatePut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | EmailTemplateUpdate | Email template model | |
templateId | int? | Email template id |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string EmailTemplatesGet (int? page = null, int? limit = null)
Get all user email templates
Get all user email templates
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class EmailTemplatesGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UserEmailTemplatesApi();
var page = 56; // int? | Page number (optional) (default to 1)
var limit = 56; // int? | Number of records per page (optional) (default to 10)
try
{
// Get all user email templates
string result = apiInstance.EmailTemplatesGet(page, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserEmailTemplatesApi.EmailTemplatesGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | int? | Page number | [optional] [default to 1] |
limit | int? | Number of records per page | [optional] [default to 10] |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]