|
| 1 | +# hostinger_api.ReachFormsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://developers.hostinger.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**delete_form_v1**](ReachFormsApi.md#delete_form_v1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} | Delete form |
| 8 | +[**get_form_details_v1**](ReachFormsApi.md#get_form_details_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} | Get form details |
| 9 | +[**list_forms_v1**](ReachFormsApi.md#list_forms_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/forms | List forms |
| 10 | + |
| 11 | + |
| 12 | +# **delete_form_v1** |
| 13 | +> CommonSuccessEmptyResource delete_form_v1(profile_uuid, form_uuid) |
| 14 | +
|
| 15 | +Delete form |
| 16 | + |
| 17 | +Permanently delete a form together with its template. |
| 18 | + |
| 19 | +A form that has already captured submissions cannot be deleted, so that the contacts it collected |
| 20 | +are never silently discarded - pause the form instead to stop it collecting new ones. Views alone |
| 21 | +do not block deletion. |
| 22 | + |
| 23 | +### Example |
| 24 | + |
| 25 | +* Bearer Authentication (apiToken): |
| 26 | + |
| 27 | +```python |
| 28 | +import hostinger_api |
| 29 | +from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource |
| 30 | +from hostinger_api.rest import ApiException |
| 31 | +from pprint import pprint |
| 32 | + |
| 33 | + |
| 34 | +# Configure Bearer authorization: apiToken |
| 35 | +configuration = hostinger_api.Configuration( |
| 36 | + access_token = os.environ["BEARER_TOKEN"] |
| 37 | +) |
| 38 | + |
| 39 | +# Enter a context with an instance of the API client |
| 40 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 41 | + # Create an instance of the API class |
| 42 | + api_instance = hostinger_api.ReachFormsApi(api_client) |
| 43 | + profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter |
| 44 | + form_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Form uuid parameter |
| 45 | + |
| 46 | + try: |
| 47 | + # Delete form |
| 48 | + api_response = api_instance.delete_form_v1(profile_uuid, form_uuid) |
| 49 | + print("The response of ReachFormsApi->delete_form_v1:\n") |
| 50 | + pprint(api_response) |
| 51 | + except Exception as e: |
| 52 | + print("Exception when calling ReachFormsApi->delete_form_v1: %s\n" % e) |
| 53 | +``` |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +### Parameters |
| 58 | + |
| 59 | + |
| 60 | +Name | Type | Description | Notes |
| 61 | +------------- | ------------- | ------------- | ------------- |
| 62 | + **profile_uuid** | **str**| Profile uuid parameter | |
| 63 | + **form_uuid** | **str**| Form uuid parameter | |
| 64 | + |
| 65 | +### Return type |
| 66 | + |
| 67 | +[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md) |
| 68 | + |
| 69 | +### Authorization |
| 70 | + |
| 71 | +[apiToken](../README.md#apiToken) |
| 72 | + |
| 73 | +### HTTP request headers |
| 74 | + |
| 75 | + - **Content-Type**: Not defined |
| 76 | + - **Accept**: application/json |
| 77 | + |
| 78 | +### HTTP response details |
| 79 | + |
| 80 | +| Status code | Description | Response headers | |
| 81 | +|-------------|-------------|------------------| |
| 82 | +**200** | Success empty response | - | |
| 83 | +**401** | Unauthenticated response | - | |
| 84 | +**409** | Error response | - | |
| 85 | +**500** | Error response | - | |
| 86 | + |
| 87 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 88 | + |
| 89 | +# **get_form_details_v1** |
| 90 | +> ReachV1FormsFormDetailsResource get_form_details_v1(profile_uuid, form_uuid) |
| 91 | +
|
| 92 | +Get form details |
| 93 | + |
| 94 | +Get a single form with the URL of its hosted template and the tags it applies to the contacts |
| 95 | +it captures. |
| 96 | + |
| 97 | +There is no ready-made embed snippet in the response - either serve the template HTML yourself |
| 98 | +or build your own embed around the form uuid. |
| 99 | + |
| 100 | +### Example |
| 101 | + |
| 102 | +* Bearer Authentication (apiToken): |
| 103 | + |
| 104 | +```python |
| 105 | +import hostinger_api |
| 106 | +from hostinger_api.models.reach_v1_forms_form_details_resource import ReachV1FormsFormDetailsResource |
| 107 | +from hostinger_api.rest import ApiException |
| 108 | +from pprint import pprint |
| 109 | + |
| 110 | + |
| 111 | +# Configure Bearer authorization: apiToken |
| 112 | +configuration = hostinger_api.Configuration( |
| 113 | + access_token = os.environ["BEARER_TOKEN"] |
| 114 | +) |
| 115 | + |
| 116 | +# Enter a context with an instance of the API client |
| 117 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 118 | + # Create an instance of the API class |
| 119 | + api_instance = hostinger_api.ReachFormsApi(api_client) |
| 120 | + profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter |
| 121 | + form_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Form uuid parameter |
| 122 | + |
| 123 | + try: |
| 124 | + # Get form details |
| 125 | + api_response = api_instance.get_form_details_v1(profile_uuid, form_uuid) |
| 126 | + print("The response of ReachFormsApi->get_form_details_v1:\n") |
| 127 | + pprint(api_response) |
| 128 | + except Exception as e: |
| 129 | + print("Exception when calling ReachFormsApi->get_form_details_v1: %s\n" % e) |
| 130 | +``` |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | +### Parameters |
| 135 | + |
| 136 | + |
| 137 | +Name | Type | Description | Notes |
| 138 | +------------- | ------------- | ------------- | ------------- |
| 139 | + **profile_uuid** | **str**| Profile uuid parameter | |
| 140 | + **form_uuid** | **str**| Form uuid parameter | |
| 141 | + |
| 142 | +### Return type |
| 143 | + |
| 144 | +[**ReachV1FormsFormDetailsResource**](ReachV1FormsFormDetailsResource.md) |
| 145 | + |
| 146 | +### Authorization |
| 147 | + |
| 148 | +[apiToken](../README.md#apiToken) |
| 149 | + |
| 150 | +### HTTP request headers |
| 151 | + |
| 152 | + - **Content-Type**: Not defined |
| 153 | + - **Accept**: application/json |
| 154 | + |
| 155 | +### HTTP response details |
| 156 | + |
| 157 | +| Status code | Description | Response headers | |
| 158 | +|-------------|-------------|------------------| |
| 159 | +**200** | Success response | - | |
| 160 | +**401** | Unauthenticated response | - | |
| 161 | +**500** | Error response | - | |
| 162 | + |
| 163 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 164 | + |
| 165 | +# **list_forms_v1** |
| 166 | +> ReachListFormsV1200Response list_forms_v1(profile_uuid, page=page, per_page=per_page) |
| 167 | +
|
| 168 | +List forms |
| 169 | + |
| 170 | +Get a paginated list of the signup forms in a profile. |
| 171 | + |
| 172 | +Each form carries a reference to the template that renders it. Get the form details for a |
| 173 | +directly usable template URL and for the tags the form puts on the contacts it captures. |
| 174 | + |
| 175 | +### Example |
| 176 | + |
| 177 | +* Bearer Authentication (apiToken): |
| 178 | + |
| 179 | +```python |
| 180 | +import hostinger_api |
| 181 | +from hostinger_api.models.reach_list_forms_v1200_response import ReachListFormsV1200Response |
| 182 | +from hostinger_api.rest import ApiException |
| 183 | +from pprint import pprint |
| 184 | + |
| 185 | + |
| 186 | +# Configure Bearer authorization: apiToken |
| 187 | +configuration = hostinger_api.Configuration( |
| 188 | + access_token = os.environ["BEARER_TOKEN"] |
| 189 | +) |
| 190 | + |
| 191 | +# Enter a context with an instance of the API client |
| 192 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 193 | + # Create an instance of the API class |
| 194 | + api_instance = hostinger_api.ReachFormsApi(api_client) |
| 195 | + profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter |
| 196 | + page = 1 # int | Page number (optional) |
| 197 | + per_page = 25 # int | Number of items per page (optional) (default to 25) |
| 198 | + |
| 199 | + try: |
| 200 | + # List forms |
| 201 | + api_response = api_instance.list_forms_v1(profile_uuid, page=page, per_page=per_page) |
| 202 | + print("The response of ReachFormsApi->list_forms_v1:\n") |
| 203 | + pprint(api_response) |
| 204 | + except Exception as e: |
| 205 | + print("Exception when calling ReachFormsApi->list_forms_v1: %s\n" % e) |
| 206 | +``` |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | +### Parameters |
| 211 | + |
| 212 | + |
| 213 | +Name | Type | Description | Notes |
| 214 | +------------- | ------------- | ------------- | ------------- |
| 215 | + **profile_uuid** | **str**| Profile uuid parameter | |
| 216 | + **page** | **int**| Page number | [optional] |
| 217 | + **per_page** | **int**| Number of items per page | [optional] [default to 25] |
| 218 | + |
| 219 | +### Return type |
| 220 | + |
| 221 | +[**ReachListFormsV1200Response**](ReachListFormsV1200Response.md) |
| 222 | + |
| 223 | +### Authorization |
| 224 | + |
| 225 | +[apiToken](../README.md#apiToken) |
| 226 | + |
| 227 | +### HTTP request headers |
| 228 | + |
| 229 | + - **Content-Type**: Not defined |
| 230 | + - **Accept**: application/json |
| 231 | + |
| 232 | +### HTTP response details |
| 233 | + |
| 234 | +| Status code | Description | Response headers | |
| 235 | +|-------------|-------------|------------------| |
| 236 | +**200** | Success response | - | |
| 237 | +**401** | Unauthenticated response | - | |
| 238 | +**500** | Error response | - | |
| 239 | + |
| 240 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 241 | + |
0 commit comments