public class FormControllerApi extends Object
| Constructor and Description |
|---|
FormControllerApi() |
FormControllerApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
String |
submitForm(String emailAddress,
String redirectTo,
String spamCheck,
String subject,
String successMessage,
String to,
String otherParameters)
Submit a form to be parsed and sent as an email to an address determined by the form fields
This endpoint allows you to submit HTML forms and receive the field values and files via email.
|
okhttp3.Call |
submitFormAsync(String emailAddress,
String redirectTo,
String spamCheck,
String subject,
String successMessage,
String to,
String otherParameters,
ApiCallback<String> _callback)
Submit a form to be parsed and sent as an email to an address determined by the form fields (asynchronously)
This endpoint allows you to submit HTML forms and receive the field values and files via email.
|
okhttp3.Call |
submitFormCall(String emailAddress,
String redirectTo,
String spamCheck,
String subject,
String successMessage,
String to,
String otherParameters,
ApiCallback _callback)
Build call for submitForm
|
ApiResponse<String> |
submitFormWithHttpInfo(String emailAddress,
String redirectTo,
String spamCheck,
String subject,
String successMessage,
String to,
String otherParameters)
Submit a form to be parsed and sent as an email to an address determined by the form fields
This endpoint allows you to submit HTML forms and receive the field values and files via email.
|
public FormControllerApi()
public FormControllerApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call submitFormCall(String emailAddress, String redirectTo, String spamCheck, String subject, String successMessage, String to, String otherParameters, ApiCallback _callback) throws ApiException
emailAddress - Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)redirectTo - Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)spamCheck - Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional)subject - Optional subject of the email that will be sent. (optional)successMessage - Optional success message to display if no _redirectTo present. (optional)to - The email address that submitted form should be sent to. (optional)otherParameters - All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public String submitForm(String emailAddress, String redirectTo, String spamCheck, String subject, String successMessage, String to, String otherParameters) throws ApiException
emailAddress - Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)redirectTo - Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)spamCheck - Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional)subject - Optional subject of the email that will be sent. (optional)successMessage - Optional success message to display if no _redirectTo present. (optional)to - The email address that submitted form should be sent to. (optional)otherParameters - All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<String> submitFormWithHttpInfo(String emailAddress, String redirectTo, String spamCheck, String subject, String successMessage, String to, String otherParameters) throws ApiException
emailAddress - Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)redirectTo - Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)spamCheck - Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional)subject - Optional subject of the email that will be sent. (optional)successMessage - Optional success message to display if no _redirectTo present. (optional)to - The email address that submitted form should be sent to. (optional)otherParameters - All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call submitFormAsync(String emailAddress, String redirectTo, String spamCheck, String subject, String successMessage, String to, String otherParameters, ApiCallback<String> _callback) throws ApiException
emailAddress - Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)redirectTo - Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)spamCheck - Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored. (optional)subject - Optional subject of the email that will be sent. (optional)successMessage - Optional success message to display if no _redirectTo present. (optional)to - The email address that submitted form should be sent to. (optional)otherParameters - All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
Copyright © 2021. All rights reserved.