Class TemplateApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
createSmsTemplate
(Class<?> T, SmsTemplate smsTemplate) Create an SMS Template Creates a new custom SMS templatecreateSmsTemplate
(SmsTemplate smsTemplate) Create an SMS Template Creates a new custom SMS templateorg.springframework.http.ResponseEntity<SmsTemplate>
createSmsTemplateWithHttpInfo
(SmsTemplate smsTemplate) Create an SMS Template Creates a new custom SMS templatecreateSmsTemplateWithPaginationInfo
(SmsTemplate smsTemplate) Create an SMS Template Creates a new custom SMS templatevoid
deleteSmsTemplate
(String templateId) Delete an SMS Template Deletes an SMS templateorg.springframework.http.ResponseEntity<Void>
deleteSmsTemplateWithHttpInfo
(String templateId) Delete an SMS Template Deletes an SMS templategetSmsTemplate
(String templateId) Retrieve an SMS Template Retrieves a specific template by `id`org.springframework.http.ResponseEntity<SmsTemplate>
getSmsTemplateWithHttpInfo
(String templateId) Retrieve an SMS Template Retrieves a specific template by `id`getSmsTemplateWithPaginationInfo
(String templateId) Retrieve an SMS Template Retrieves a specific template by `id`listSmsTemplates
(SmsTemplateType templateType) List all SMS Templates Lists all custom SMS templates.org.springframework.http.ResponseEntity<List<SmsTemplate>>
listSmsTemplatesWithHttpInfo
(SmsTemplateType templateType) List all SMS Templates Lists all custom SMS templates.listSmsTemplatesWithPaginationInfo
(SmsTemplateType templateType) List all SMS Templates Lists all custom SMS templates.<T> T
replaceSmsTemplate
(Class<?> T, String templateId, SmsTemplate smsTemplate) Replace an SMS Template Replaces the SMS templatereplaceSmsTemplate
(String templateId, SmsTemplate smsTemplate) Replace an SMS Template Replaces the SMS templateorg.springframework.http.ResponseEntity<SmsTemplate>
replaceSmsTemplateWithHttpInfo
(String templateId, SmsTemplate smsTemplate) Replace an SMS Template Replaces the SMS templatereplaceSmsTemplateWithPaginationInfo
(String templateId, SmsTemplate smsTemplate) Replace an SMS Template Replaces the SMS templatevoid
setApiClient
(ApiClient apiClient) <T> T
updateSmsTemplate
(Class<?> T, String templateId, SmsTemplate smsTemplate) Update an SMS Template Updates an SMS templateupdateSmsTemplate
(String templateId, SmsTemplate smsTemplate) Update an SMS Template Updates an SMS templateorg.springframework.http.ResponseEntity<SmsTemplate>
updateSmsTemplateWithHttpInfo
(String templateId, SmsTemplate smsTemplate) Update an SMS Template Updates an SMS templateupdateSmsTemplateWithPaginationInfo
(String templateId, SmsTemplate smsTemplate) Update an SMS Template Updates an SMS template
-
Constructor Details
-
TemplateApi
public TemplateApi() -
TemplateApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createSmsTemplate
public SmsTemplate createSmsTemplate(SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Create an SMS Template Creates a new custom SMS template200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
smsTemplate
- (required)- Returns:
- SmsTemplate
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
createSmsTemplate
public <T> T createSmsTemplate(Class<?> T, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Create an SMS Template Creates a new custom SMS template200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typesmsTemplate
- (required)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
createSmsTemplateWithHttpInfo
public org.springframework.http.ResponseEntity<SmsTemplate> createSmsTemplateWithHttpInfo(SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Create an SMS Template Creates a new custom SMS template200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
smsTemplate
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
createSmsTemplateWithPaginationInfo
public PagedList createSmsTemplateWithPaginationInfo(SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Create an SMS Template Creates a new custom SMS template200 - Success
400 - Bad Request
403 - Forbidden
429 - Too Many Requests
- Parameters:
smsTemplate
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
deleteSmsTemplate
public void deleteSmsTemplate(String templateId) throws org.springframework.web.client.RestClientException Delete an SMS Template Deletes an SMS template204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
deleteSmsTemplateWithHttpInfo
public org.springframework.http.ResponseEntity<Void> deleteSmsTemplateWithHttpInfo(String templateId) throws org.springframework.web.client.RestClientException Delete an SMS Template Deletes an SMS template204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getSmsTemplate
public SmsTemplate getSmsTemplate(String templateId) throws org.springframework.web.client.RestClientException Retrieve an SMS Template Retrieves a specific template by `id`200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)- Returns:
- SmsTemplate
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getSmsTemplateWithHttpInfo
public org.springframework.http.ResponseEntity<SmsTemplate> getSmsTemplateWithHttpInfo(String templateId) throws org.springframework.web.client.RestClientException Retrieve an SMS Template Retrieves a specific template by `id`200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getSmsTemplateWithPaginationInfo
public PagedList getSmsTemplateWithPaginationInfo(String templateId) throws org.springframework.web.client.RestClientException Retrieve an SMS Template Retrieves a specific template by `id`200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSmsTemplates
public List<SmsTemplate> listSmsTemplates(SmsTemplateType templateType) throws org.springframework.web.client.RestClientException List all SMS Templates Lists all custom SMS templates. A subset of templates can be returned that match a template type.200 - Success
403 - Forbidden
429 - Too Many Requests
- Parameters:
templateType
- (optional)- Returns:
- List<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSmsTemplatesWithHttpInfo
public org.springframework.http.ResponseEntity<List<SmsTemplate>> listSmsTemplatesWithHttpInfo(SmsTemplateType templateType) throws org.springframework.web.client.RestClientException List all SMS Templates Lists all custom SMS templates. A subset of templates can be returned that match a template type.200 - Success
403 - Forbidden
429 - Too Many Requests
- Parameters:
templateType
- (optional)- Returns:
- ResponseEntity<List<SmsTemplate>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSmsTemplatesWithPaginationInfo
public PagedList listSmsTemplatesWithPaginationInfo(SmsTemplateType templateType) throws org.springframework.web.client.RestClientException List all SMS Templates Lists all custom SMS templates. A subset of templates can be returned that match a template type.200 - Success
403 - Forbidden
429 - Too Many Requests
- Parameters:
templateType
- (optional)- Returns:
- ResponseEntity<List<SmsTemplate>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
replaceSmsTemplate
public SmsTemplate replaceSmsTemplate(String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Replace an SMS Template Replaces the SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)smsTemplate
- (required)- Returns:
- SmsTemplate
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
replaceSmsTemplate
public <T> T replaceSmsTemplate(Class<?> T, String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Replace an SMS Template Replaces the SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typetemplateId
- (required)smsTemplate
- (required)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
replaceSmsTemplateWithHttpInfo
public org.springframework.http.ResponseEntity<SmsTemplate> replaceSmsTemplateWithHttpInfo(String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Replace an SMS Template Replaces the SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)smsTemplate
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
replaceSmsTemplateWithPaginationInfo
public PagedList replaceSmsTemplateWithPaginationInfo(String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Replace an SMS Template Replaces the SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)smsTemplate
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
updateSmsTemplate
public SmsTemplate updateSmsTemplate(String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Update an SMS Template Updates an SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)smsTemplate
- (required)- Returns:
- SmsTemplate
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
updateSmsTemplate
public <T> T updateSmsTemplate(Class<?> T, String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Update an SMS Template Updates an SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typetemplateId
- (required)smsTemplate
- (required)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
updateSmsTemplateWithHttpInfo
public org.springframework.http.ResponseEntity<SmsTemplate> updateSmsTemplateWithHttpInfo(String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Update an SMS Template Updates an SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)smsTemplate
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
updateSmsTemplateWithPaginationInfo
public PagedList updateSmsTemplateWithPaginationInfo(String templateId, SmsTemplate smsTemplate) throws org.springframework.web.client.RestClientException Update an SMS Template Updates an SMS template200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
templateId
- (required)smsTemplate
- (required)- Returns:
- ResponseEntity<SmsTemplate>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-