|
| 1 | +# hostinger_api.ReachAutomationsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://developers.hostinger.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**get_automation_details_v1**](ReachAutomationsApi.md#get_automation_details_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/automations/{automationUuid} | Get automation details |
| 8 | +[**list_automation_steps_v1**](ReachAutomationsApi.md#list_automation_steps_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/automations/{automationUuid}/steps | List automation steps |
| 9 | +[**list_automations_v1**](ReachAutomationsApi.md#list_automations_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/automations | List automations |
| 10 | + |
| 11 | + |
| 12 | +# **get_automation_details_v1** |
| 13 | +> ReachV1AutomationsAutomationResource get_automation_details_v1(profile_uuid, automation_uuid) |
| 14 | +
|
| 15 | +Get automation details |
| 16 | + |
| 17 | +Get a single automation with the counts of contacts that entered it, are moving through it, |
| 18 | +finished it or failed on the way. |
| 19 | + |
| 20 | +This describes the automation itself. To see the workflow it runs, use the steps endpoint. |
| 21 | + |
| 22 | +### Example |
| 23 | + |
| 24 | +* Bearer Authentication (apiToken): |
| 25 | + |
| 26 | +```python |
| 27 | +import hostinger_api |
| 28 | +from hostinger_api.models.reach_v1_automations_automation_resource import ReachV1AutomationsAutomationResource |
| 29 | +from hostinger_api.rest import ApiException |
| 30 | +from pprint import pprint |
| 31 | + |
| 32 | + |
| 33 | +# Configure Bearer authorization: apiToken |
| 34 | +configuration = hostinger_api.Configuration( |
| 35 | + access_token = os.environ["BEARER_TOKEN"] |
| 36 | +) |
| 37 | + |
| 38 | +# Enter a context with an instance of the API client |
| 39 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 40 | + # Create an instance of the API class |
| 41 | + api_instance = hostinger_api.ReachAutomationsApi(api_client) |
| 42 | + profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter |
| 43 | + automation_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Automation uuid parameter |
| 44 | + |
| 45 | + try: |
| 46 | + # Get automation details |
| 47 | + api_response = api_instance.get_automation_details_v1(profile_uuid, automation_uuid) |
| 48 | + print("The response of ReachAutomationsApi->get_automation_details_v1:\n") |
| 49 | + pprint(api_response) |
| 50 | + except Exception as e: |
| 51 | + print("Exception when calling ReachAutomationsApi->get_automation_details_v1: %s\n" % e) |
| 52 | +``` |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +### Parameters |
| 57 | + |
| 58 | + |
| 59 | +Name | Type | Description | Notes |
| 60 | +------------- | ------------- | ------------- | ------------- |
| 61 | + **profile_uuid** | **str**| Profile uuid parameter | |
| 62 | + **automation_uuid** | **str**| Automation uuid parameter | |
| 63 | + |
| 64 | +### Return type |
| 65 | + |
| 66 | +[**ReachV1AutomationsAutomationResource**](ReachV1AutomationsAutomationResource.md) |
| 67 | + |
| 68 | +### Authorization |
| 69 | + |
| 70 | +[apiToken](../README.md#apiToken) |
| 71 | + |
| 72 | +### HTTP request headers |
| 73 | + |
| 74 | + - **Content-Type**: Not defined |
| 75 | + - **Accept**: application/json |
| 76 | + |
| 77 | +### HTTP response details |
| 78 | + |
| 79 | +| Status code | Description | Response headers | |
| 80 | +|-------------|-------------|------------------| |
| 81 | +**200** | Success response | - | |
| 82 | +**401** | Unauthenticated response | - | |
| 83 | +**500** | Error response | - | |
| 84 | + |
| 85 | +[[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) |
| 86 | + |
| 87 | +# **list_automation_steps_v1** |
| 88 | +> List[ReachV1AutomationsStepsAutomationStepResource] list_automation_steps_v1(profile_uuid, automation_uuid) |
| 89 | +
|
| 90 | +List automation steps |
| 91 | + |
| 92 | +Get the workflow of an automation as a flat list of steps. |
| 93 | + |
| 94 | +The steps form a tree rather than a straight line: follow `parent_uuid` to reconstruct the |
| 95 | +branches, and use `step_order` to order the steps that share a parent. An automation with no |
| 96 | +steps yet returns an empty list. |
| 97 | + |
| 98 | +### Example |
| 99 | + |
| 100 | +* Bearer Authentication (apiToken): |
| 101 | + |
| 102 | +```python |
| 103 | +import hostinger_api |
| 104 | +from hostinger_api.models.reach_v1_automations_steps_automation_step_resource import ReachV1AutomationsStepsAutomationStepResource |
| 105 | +from hostinger_api.rest import ApiException |
| 106 | +from pprint import pprint |
| 107 | + |
| 108 | + |
| 109 | +# Configure Bearer authorization: apiToken |
| 110 | +configuration = hostinger_api.Configuration( |
| 111 | + access_token = os.environ["BEARER_TOKEN"] |
| 112 | +) |
| 113 | + |
| 114 | +# Enter a context with an instance of the API client |
| 115 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 116 | + # Create an instance of the API class |
| 117 | + api_instance = hostinger_api.ReachAutomationsApi(api_client) |
| 118 | + profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter |
| 119 | + automation_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Automation uuid parameter |
| 120 | + |
| 121 | + try: |
| 122 | + # List automation steps |
| 123 | + api_response = api_instance.list_automation_steps_v1(profile_uuid, automation_uuid) |
| 124 | + print("The response of ReachAutomationsApi->list_automation_steps_v1:\n") |
| 125 | + pprint(api_response) |
| 126 | + except Exception as e: |
| 127 | + print("Exception when calling ReachAutomationsApi->list_automation_steps_v1: %s\n" % e) |
| 128 | +``` |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | +### Parameters |
| 133 | + |
| 134 | + |
| 135 | +Name | Type | Description | Notes |
| 136 | +------------- | ------------- | ------------- | ------------- |
| 137 | + **profile_uuid** | **str**| Profile uuid parameter | |
| 138 | + **automation_uuid** | **str**| Automation uuid parameter | |
| 139 | + |
| 140 | +### Return type |
| 141 | + |
| 142 | +[**List[ReachV1AutomationsStepsAutomationStepResource]**](ReachV1AutomationsStepsAutomationStepResource.md) |
| 143 | + |
| 144 | +### Authorization |
| 145 | + |
| 146 | +[apiToken](../README.md#apiToken) |
| 147 | + |
| 148 | +### HTTP request headers |
| 149 | + |
| 150 | + - **Content-Type**: Not defined |
| 151 | + - **Accept**: application/json |
| 152 | + |
| 153 | +### HTTP response details |
| 154 | + |
| 155 | +| Status code | Description | Response headers | |
| 156 | +|-------------|-------------|------------------| |
| 157 | +**200** | Success response | - | |
| 158 | +**401** | Unauthenticated response | - | |
| 159 | +**500** | Error response | - | |
| 160 | + |
| 161 | +[[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) |
| 162 | + |
| 163 | +# **list_automations_v1** |
| 164 | +> ReachListAutomationsV1200Response list_automations_v1(profile_uuid, status=status, sort_direction=sort_direction, page=page, per_page=per_page) |
| 165 | +
|
| 166 | +List automations |
| 167 | + |
| 168 | +Get a paginated list of the automations in a profile. |
| 169 | + |
| 170 | +Every automation comes with the counts of contacts that entered it, are moving through it, |
| 171 | +finished it or failed on the way. Those counts describe the contact journey and are not |
| 172 | +email engagement metrics - for opens, clicks and unsubscribes use the campaign statistics |
| 173 | +endpoint instead. |
| 174 | + |
| 175 | +### Example |
| 176 | + |
| 177 | +* Bearer Authentication (apiToken): |
| 178 | + |
| 179 | +```python |
| 180 | +import hostinger_api |
| 181 | +from hostinger_api.models.reach_list_automations_v1200_response import ReachListAutomationsV1200Response |
| 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.ReachAutomationsApi(api_client) |
| 195 | + profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter |
| 196 | + status = 'active' # str | Filter automations by status. There is no `completed` status. An automation that has finished for every contact still reports `active`. (optional) |
| 197 | + sort_direction = 'desc' # str | Order automations by creation date. Newest first unless set to `asc`. (optional) |
| 198 | + page = 1 # int | Page number (optional) |
| 199 | + per_page = 25 # int | Number of items per page (optional) (default to 25) |
| 200 | + |
| 201 | + try: |
| 202 | + # List automations |
| 203 | + api_response = api_instance.list_automations_v1(profile_uuid, status=status, sort_direction=sort_direction, page=page, per_page=per_page) |
| 204 | + print("The response of ReachAutomationsApi->list_automations_v1:\n") |
| 205 | + pprint(api_response) |
| 206 | + except Exception as e: |
| 207 | + print("Exception when calling ReachAutomationsApi->list_automations_v1: %s\n" % e) |
| 208 | +``` |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | +### Parameters |
| 213 | + |
| 214 | + |
| 215 | +Name | Type | Description | Notes |
| 216 | +------------- | ------------- | ------------- | ------------- |
| 217 | + **profile_uuid** | **str**| Profile uuid parameter | |
| 218 | + **status** | **str**| Filter automations by status. There is no `completed` status. An automation that has finished for every contact still reports `active`. | [optional] |
| 219 | + **sort_direction** | **str**| Order automations by creation date. Newest first unless set to `asc`. | [optional] |
| 220 | + **page** | **int**| Page number | [optional] |
| 221 | + **per_page** | **int**| Number of items per page | [optional] [default to 25] |
| 222 | + |
| 223 | +### Return type |
| 224 | + |
| 225 | +[**ReachListAutomationsV1200Response**](ReachListAutomationsV1200Response.md) |
| 226 | + |
| 227 | +### Authorization |
| 228 | + |
| 229 | +[apiToken](../README.md#apiToken) |
| 230 | + |
| 231 | +### HTTP request headers |
| 232 | + |
| 233 | + - **Content-Type**: Not defined |
| 234 | + - **Accept**: application/json |
| 235 | + |
| 236 | +### HTTP response details |
| 237 | + |
| 238 | +| Status code | Description | Response headers | |
| 239 | +|-------------|-------------|------------------| |
| 240 | +**200** | Success response | - | |
| 241 | +**401** | Unauthenticated response | - | |
| 242 | +**500** | Error response | - | |
| 243 | + |
| 244 | +[[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) |
| 245 | + |
0 commit comments