public class FormControllerApi extends Object
Constructor and Description |
---|
FormControllerApi() |
FormControllerApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
String |
submitForm(String to,
String subject,
String redirectTo,
String emailAddress,
String successMessage,
String spamCheck,
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 to,
String subject,
String redirectTo,
String emailAddress,
String successMessage,
String spamCheck,
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 to,
String subject,
String redirectTo,
String emailAddress,
String successMessage,
String spamCheck,
String otherParameters,
ApiCallback _callback)
Build call for submitForm
|
ApiResponse<String> |
submitFormWithHttpInfo(String to,
String subject,
String redirectTo,
String emailAddress,
String successMessage,
String spamCheck,
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 int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call submitFormCall(String to, String subject, String redirectTo, String emailAddress, String successMessage, String spamCheck, String otherParameters, ApiCallback _callback) throws ApiException
to
- The email address that submitted form should be sent to. (optional)subject
- Optional subject of the email that will be sent. (optional)redirectTo
- Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)emailAddress
- Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)successMessage
- Optional success message to display if no _redirectTo present. (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)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 objectStatus Code | Description | Response Headers |
200 | OK | - |
public String submitForm(String to, String subject, String redirectTo, String emailAddress, String successMessage, String spamCheck, String otherParameters) throws ApiException
to
- The email address that submitted form should be sent to. (optional)subject
- Optional subject of the email that will be sent. (optional)redirectTo
- Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)emailAddress
- Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)successMessage
- Optional success message to display if no _redirectTo present. (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)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 bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<String> submitFormWithHttpInfo(String to, String subject, String redirectTo, String emailAddress, String successMessage, String spamCheck, String otherParameters) throws ApiException
to
- The email address that submitted form should be sent to. (optional)subject
- Optional subject of the email that will be sent. (optional)redirectTo
- Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)emailAddress
- Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)successMessage
- Optional success message to display if no _redirectTo present. (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)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 bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call submitFormAsync(String to, String subject, String redirectTo, String emailAddress, String successMessage, String spamCheck, String otherParameters, ApiCallback<String> _callback) throws ApiException
to
- The email address that submitted form should be sent to. (optional)subject
- Optional subject of the email that will be sent. (optional)redirectTo
- Optional URL to redirect form submitter to after submission. If not present user will see a success message. (optional)emailAddress
- Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later. (optional)successMessage
- Optional success message to display if no _redirectTo present. (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)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 objectStatus Code | Description | Response Headers |
200 | OK | - |
Copyright © 2023. All rights reserved.