Skip to content

Commit 1120558

Browse files
chore: sdk update
1 parent 7000b84 commit 1120558

1,269 files changed

Lines changed: 3981 additions & 1357 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,15 @@ Class | Method | HTTP request | Description
352352
*ReachFormsApi* | [**delete_form_v1**](docs/ReachFormsApi.md#delete_form_v1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} | Delete form
353353
*ReachFormsApi* | [**get_form_details_v1**](docs/ReachFormsApi.md#get_form_details_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} | Get form details
354354
*ReachFormsApi* | [**list_forms_v1**](docs/ReachFormsApi.md#list_forms_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/forms | List forms
355+
*ReachProfilesApi* | [**connect_sending_domain_v1**](docs/ReachProfilesApi.md#connect_sending_domain_v1) | **POST** /api/reach/v1/profiles/{profileUuid}/domains | Connect sending domain
356+
*ReachProfilesApi* | [**delete_sending_domain_v1**](docs/ReachProfilesApi.md#delete_sending_domain_v1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/domains | Delete sending domain
355357
*ReachProfilesApi* | [**get_connected_sending_domain_v1**](docs/ReachProfilesApi.md#get_connected_sending_domain_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains | Get connected sending domain
356358
*ReachProfilesApi* | [**get_profile_domain_dns_status_v1**](docs/ReachProfilesApi.md#get_profile_domain_dns_status_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status
359+
*ReachProfilesApi* | [**get_profile_settings_v1**](docs/ReachProfilesApi.md#get_profile_settings_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/settings | Get profile settings
357360
*ReachProfilesApi* | [**get_remaining_plan_limits_v1**](docs/ReachProfilesApi.md#get_remaining_plan_limits_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/limits | Get remaining plan limits
358361
*ReachProfilesApi* | [**list_plan_feature_access_v1**](docs/ReachProfilesApi.md#list_plan_feature_access_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/features | List plan feature access
359362
*ReachProfilesApi* | [**list_profiles_v1**](docs/ReachProfilesApi.md#list_profiles_v1) | **GET** /api/reach/v1/profiles | List Profiles
363+
*ReachProfilesApi* | [**update_profile_settings_v1**](docs/ReachProfilesApi.md#update_profile_settings_v1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/settings | Update profile settings
360364
*ReachSegmentsApi* | [**count_profile_segment_contacts_v1**](docs/ReachSegmentsApi.md#count_profile_segment_contacts_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/count | Count profile segment contacts
361365
*ReachSegmentsApi* | [**create_a_new_contact_segment_v1**](docs/ReachSegmentsApi.md#create_a_new_contact_segment_v1) | **POST** /api/reach/v1/segmentation/segments | Create a new contact segment
362366
*ReachSegmentsApi* | [**create_a_profile_segment_v1**](docs/ReachSegmentsApi.md#create_a_profile_segment_v1) | **POST** /api/reach/v1/profiles/{profileUuid}/segmentation/segments | Create a profile segment
@@ -917,6 +921,8 @@ Class | Method | HTTP request | Description
917921
- [ReachV1FormsFormTagResource](docs/ReachV1FormsFormTagResource.md)
918922
- [ReachV1FormsFormTemplateDetailsResource](docs/ReachV1FormsFormTemplateDetailsResource.md)
919923
- [ReachV1FormsFormTemplateResource](docs/ReachV1FormsFormTemplateResource.md)
924+
- [ReachV1ProfilesDomainsConnectRequest](docs/ReachV1ProfilesDomainsConnectRequest.md)
925+
- [ReachV1ProfilesDomainsDisconnectRequest](docs/ReachV1ProfilesDomainsDisconnectRequest.md)
920926
- [ReachV1ProfilesDomainsDnsRecordStatus](docs/ReachV1ProfilesDomainsDnsRecordStatus.md)
921927
- [ReachV1ProfilesDomainsDnsRecordStatusActualInner](docs/ReachV1ProfilesDomainsDnsRecordStatusActualInner.md)
922928
- [ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner](docs/ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md)
@@ -929,6 +935,8 @@ Class | Method | HTTP request | Description
929935
- [ReachV1ProfilesProfileResource](docs/ReachV1ProfilesProfileResource.md)
930936
- [ReachV1ProfilesProfileResourceLimits](docs/ReachV1ProfilesProfileResourceLimits.md)
931937
- [ReachV1ProfilesProfileResourceProfilesInner](docs/ReachV1ProfilesProfileResourceProfilesInner.md)
938+
- [ReachV1ProfilesSettingsSettingsResource](docs/ReachV1ProfilesSettingsSettingsResource.md)
939+
- [ReachV1ProfilesSettingsUpdateRequest](docs/ReachV1ProfilesSettingsUpdateRequest.md)
932940
- [ReachV1TemplatesStoreRequest](docs/ReachV1TemplatesStoreRequest.md)
933941
- [ReachV1TemplatesTemplateResource](docs/ReachV1TemplatesTemplateResource.md)
934942
- [VPSV1ActionActionResource](docs/VPSV1ActionActionResource.md)

‎docs/ReachProfilesApi.md‎

Lines changed: 328 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,185 @@ All URIs are relative to *https://developers.hostinger.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**connect_sending_domain_v1**](ReachProfilesApi.md#connect_sending_domain_v1) | **POST** /api/reach/v1/profiles/{profileUuid}/domains | Connect sending domain
8+
[**delete_sending_domain_v1**](ReachProfilesApi.md#delete_sending_domain_v1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/domains | Delete sending domain
79
[**get_connected_sending_domain_v1**](ReachProfilesApi.md#get_connected_sending_domain_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains | Get connected sending domain
810
[**get_profile_domain_dns_status_v1**](ReachProfilesApi.md#get_profile_domain_dns_status_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status
11+
[**get_profile_settings_v1**](ReachProfilesApi.md#get_profile_settings_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/settings | Get profile settings
912
[**get_remaining_plan_limits_v1**](ReachProfilesApi.md#get_remaining_plan_limits_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/limits | Get remaining plan limits
1013
[**list_plan_feature_access_v1**](ReachProfilesApi.md#list_plan_feature_access_v1) | **GET** /api/reach/v1/profiles/{profileUuid}/features | List plan feature access
1114
[**list_profiles_v1**](ReachProfilesApi.md#list_profiles_v1) | **GET** /api/reach/v1/profiles | List Profiles
15+
[**update_profile_settings_v1**](ReachProfilesApi.md#update_profile_settings_v1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/settings | Update profile settings
1216

1317

18+
# **connect_sending_domain_v1**
19+
> CommonSuccessEmptyResource connect_sending_domain_v1(profile_uuid, reach_v1_profiles_domains_connect_request)
20+
21+
Connect sending domain
22+
23+
Connect a sending domain to the profile so emails can be sent from addresses on it.
24+
25+
Connecting does not make the domain ready to send: check the DNS status endpoint next for
26+
records that are still missing. A domain the account owns or has already verified connects
27+
immediately. Any other domain starts a TXT ownership verification and returns `409`;
28+
complete the verification in Reach, then retry. Returns `422` when the profile or another
29+
profile already has the domain, the domain is blocked, or its ownership cannot be verified.
30+
An already connected domain is never replaced.
31+
32+
On success the sender address of draft and scheduled campaigns, and of published automation
33+
and double opt-in emails, moves onto the new domain in the background, keeping the part
34+
before the `@`.
35+
36+
### Example
37+
38+
* Bearer Authentication (apiToken):
39+
40+
```python
41+
import hostinger_api
42+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
43+
from hostinger_api.models.reach_v1_profiles_domains_connect_request import ReachV1ProfilesDomainsConnectRequest
44+
from hostinger_api.rest import ApiException
45+
from pprint import pprint
46+
47+
48+
# Configure Bearer authorization: apiToken
49+
configuration = hostinger_api.Configuration(
50+
access_token = os.environ["BEARER_TOKEN"]
51+
)
52+
53+
# Enter a context with an instance of the API client
54+
with hostinger_api.ApiClient(configuration) as api_client:
55+
# Create an instance of the API class
56+
api_instance = hostinger_api.ReachProfilesApi(api_client)
57+
profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter
58+
reach_v1_profiles_domains_connect_request = hostinger_api.ReachV1ProfilesDomainsConnectRequest() # ReachV1ProfilesDomainsConnectRequest |
59+
60+
try:
61+
# Connect sending domain
62+
api_response = api_instance.connect_sending_domain_v1(profile_uuid, reach_v1_profiles_domains_connect_request)
63+
print("The response of ReachProfilesApi->connect_sending_domain_v1:\n")
64+
pprint(api_response)
65+
except Exception as e:
66+
print("Exception when calling ReachProfilesApi->connect_sending_domain_v1: %s\n" % e)
67+
```
68+
69+
70+
71+
### Parameters
72+
73+
74+
Name | Type | Description | Notes
75+
------------- | ------------- | ------------- | -------------
76+
**profile_uuid** | **str**| Profile uuid parameter |
77+
**reach_v1_profiles_domains_connect_request** | [**ReachV1ProfilesDomainsConnectRequest**](ReachV1ProfilesDomainsConnectRequest.md)| |
78+
79+
### Return type
80+
81+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
82+
83+
### Authorization
84+
85+
[apiToken](../README.md#apiToken)
86+
87+
### HTTP request headers
88+
89+
- **Content-Type**: application/json
90+
- **Accept**: application/json
91+
92+
### HTTP response details
93+
94+
| Status code | Description | Response headers |
95+
|-------------|-------------|------------------|
96+
**200** | Success empty response | - |
97+
**401** | Unauthenticated response | - |
98+
**409** | Conflict response. &#x60;Retry-After&#x60;, when present, is the number of seconds to wait before retrying. | * Retry-After - Seconds to wait before retrying the request <br> |
99+
**422** | Validation error response | - |
100+
**500** | Error response | - |
101+
102+
[[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)
103+
104+
# **delete_sending_domain_v1**
105+
> CommonSuccessEmptyResource delete_sending_domain_v1(profile_uuid, reach_v1_profiles_domains_disconnect_request)
106+
107+
Delete sending domain
108+
109+
Disconnect the sending domain from the profile.
110+
111+
The domain record is removed, so the profile has no sending domain afterwards and campaigns
112+
cannot be sent until a domain is connected again. Sender addresses already stored on
113+
campaigns, automations and settings are left untouched and keep pointing at the removed
114+
domain. A domain that is not connected to the profile also succeeds, so success is not proof
115+
that anything was deleted. DNS records at the DNS provider are not removed. To switch
116+
domains, delete this one and connect the new one. Confirm the domain with the customer
117+
before calling.
118+
119+
### Example
120+
121+
* Bearer Authentication (apiToken):
122+
123+
```python
124+
import hostinger_api
125+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
126+
from hostinger_api.models.reach_v1_profiles_domains_disconnect_request import ReachV1ProfilesDomainsDisconnectRequest
127+
from hostinger_api.rest import ApiException
128+
from pprint import pprint
129+
130+
131+
# Configure Bearer authorization: apiToken
132+
configuration = hostinger_api.Configuration(
133+
access_token = os.environ["BEARER_TOKEN"]
134+
)
135+
136+
# Enter a context with an instance of the API client
137+
with hostinger_api.ApiClient(configuration) as api_client:
138+
# Create an instance of the API class
139+
api_instance = hostinger_api.ReachProfilesApi(api_client)
140+
profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter
141+
reach_v1_profiles_domains_disconnect_request = hostinger_api.ReachV1ProfilesDomainsDisconnectRequest() # ReachV1ProfilesDomainsDisconnectRequest |
142+
143+
try:
144+
# Delete sending domain
145+
api_response = api_instance.delete_sending_domain_v1(profile_uuid, reach_v1_profiles_domains_disconnect_request)
146+
print("The response of ReachProfilesApi->delete_sending_domain_v1:\n")
147+
pprint(api_response)
148+
except Exception as e:
149+
print("Exception when calling ReachProfilesApi->delete_sending_domain_v1: %s\n" % e)
150+
```
151+
152+
153+
154+
### Parameters
155+
156+
157+
Name | Type | Description | Notes
158+
------------- | ------------- | ------------- | -------------
159+
**profile_uuid** | **str**| Profile uuid parameter |
160+
**reach_v1_profiles_domains_disconnect_request** | [**ReachV1ProfilesDomainsDisconnectRequest**](ReachV1ProfilesDomainsDisconnectRequest.md)| |
161+
162+
### Return type
163+
164+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
165+
166+
### Authorization
167+
168+
[apiToken](../README.md#apiToken)
169+
170+
### HTTP request headers
171+
172+
- **Content-Type**: application/json
173+
- **Accept**: application/json
174+
175+
### HTTP response details
176+
177+
| Status code | Description | Response headers |
178+
|-------------|-------------|------------------|
179+
**200** | Success empty response | - |
180+
**422** | Validation error response | - |
181+
**401** | Unauthenticated response | - |
182+
**500** | Error response | - |
183+
184+
[[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)
185+
14186
# **get_connected_sending_domain_v1**
15187
> ReachV1ProfilesDomainsSendingDomainResource get_connected_sending_domain_v1(profile_uuid)
16188
@@ -160,6 +332,81 @@ Name | Type | Description | Notes
160332

161333
[[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)
162334

335+
# **get_profile_settings_v1**
336+
> ReachV1ProfilesSettingsSettingsResource get_profile_settings_v1(profile_uuid)
337+
338+
Get profile settings
339+
340+
Get the profile's saved sender identity and brand details.
341+
342+
Read the default sender before creating a campaign instead of asking the customer, and
343+
reuse the brand fields when generating email content. Any field can be `null` for a profile
344+
that never filled its settings in. This does not check that the sending domain is
345+
verified, use the connected sending domain endpoint for that.
346+
347+
### Example
348+
349+
* Bearer Authentication (apiToken):
350+
351+
```python
352+
import hostinger_api
353+
from hostinger_api.models.reach_v1_profiles_settings_settings_resource import ReachV1ProfilesSettingsSettingsResource
354+
from hostinger_api.rest import ApiException
355+
from pprint import pprint
356+
357+
358+
# Configure Bearer authorization: apiToken
359+
configuration = hostinger_api.Configuration(
360+
access_token = os.environ["BEARER_TOKEN"]
361+
)
362+
363+
# Enter a context with an instance of the API client
364+
with hostinger_api.ApiClient(configuration) as api_client:
365+
# Create an instance of the API class
366+
api_instance = hostinger_api.ReachProfilesApi(api_client)
367+
profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter
368+
369+
try:
370+
# Get profile settings
371+
api_response = api_instance.get_profile_settings_v1(profile_uuid)
372+
print("The response of ReachProfilesApi->get_profile_settings_v1:\n")
373+
pprint(api_response)
374+
except Exception as e:
375+
print("Exception when calling ReachProfilesApi->get_profile_settings_v1: %s\n" % e)
376+
```
377+
378+
379+
380+
### Parameters
381+
382+
383+
Name | Type | Description | Notes
384+
------------- | ------------- | ------------- | -------------
385+
**profile_uuid** | **str**| Profile uuid parameter |
386+
387+
### Return type
388+
389+
[**ReachV1ProfilesSettingsSettingsResource**](ReachV1ProfilesSettingsSettingsResource.md)
390+
391+
### Authorization
392+
393+
[apiToken](../README.md#apiToken)
394+
395+
### HTTP request headers
396+
397+
- **Content-Type**: Not defined
398+
- **Accept**: application/json
399+
400+
### HTTP response details
401+
402+
| Status code | Description | Response headers |
403+
|-------------|-------------|------------------|
404+
**200** | Success response | - |
405+
**401** | Unauthenticated response | - |
406+
**500** | Error response | - |
407+
408+
[[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)
409+
163410
# **get_remaining_plan_limits_v1**
164411
> ReachV1ProfilesPlanLimitsResource get_remaining_plan_limits_v1(profile_uuid)
165412
@@ -379,3 +626,84 @@ This endpoint does not need any parameter.
379626

380627
[[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)
381628

629+
# **update_profile_settings_v1**
630+
> ReachV1ProfilesSettingsSettingsResource update_profile_settings_v1(profile_uuid, reach_v1_profiles_settings_update_request)
631+
632+
Update profile settings
633+
634+
Change the profile's default sender and brand details.
635+
636+
Send only the fields to change: every omitted field keeps its value, and `null` or an empty
637+
string clears a text field. The default sender is what campaigns created afterwards start
638+
from; existing campaigns keep their own sender. `sender_email` is only the part before the
639+
`@`, because Reach combines it with the profile's connected sending domain, so an address
640+
outside that domain cannot be set. Connecting a sending domain is a separate endpoint and
641+
a connected domain cannot be changed here. Returns the settings after the change.
642+
643+
### Example
644+
645+
* Bearer Authentication (apiToken):
646+
647+
```python
648+
import hostinger_api
649+
from hostinger_api.models.reach_v1_profiles_settings_settings_resource import ReachV1ProfilesSettingsSettingsResource
650+
from hostinger_api.models.reach_v1_profiles_settings_update_request import ReachV1ProfilesSettingsUpdateRequest
651+
from hostinger_api.rest import ApiException
652+
from pprint import pprint
653+
654+
655+
# Configure Bearer authorization: apiToken
656+
configuration = hostinger_api.Configuration(
657+
access_token = os.environ["BEARER_TOKEN"]
658+
)
659+
660+
# Enter a context with an instance of the API client
661+
with hostinger_api.ApiClient(configuration) as api_client:
662+
# Create an instance of the API class
663+
api_instance = hostinger_api.ReachProfilesApi(api_client)
664+
profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter
665+
reach_v1_profiles_settings_update_request = hostinger_api.ReachV1ProfilesSettingsUpdateRequest() # ReachV1ProfilesSettingsUpdateRequest |
666+
667+
try:
668+
# Update profile settings
669+
api_response = api_instance.update_profile_settings_v1(profile_uuid, reach_v1_profiles_settings_update_request)
670+
print("The response of ReachProfilesApi->update_profile_settings_v1:\n")
671+
pprint(api_response)
672+
except Exception as e:
673+
print("Exception when calling ReachProfilesApi->update_profile_settings_v1: %s\n" % e)
674+
```
675+
676+
677+
678+
### Parameters
679+
680+
681+
Name | Type | Description | Notes
682+
------------- | ------------- | ------------- | -------------
683+
**profile_uuid** | **str**| Profile uuid parameter |
684+
**reach_v1_profiles_settings_update_request** | [**ReachV1ProfilesSettingsUpdateRequest**](ReachV1ProfilesSettingsUpdateRequest.md)| |
685+
686+
### Return type
687+
688+
[**ReachV1ProfilesSettingsSettingsResource**](ReachV1ProfilesSettingsSettingsResource.md)
689+
690+
### Authorization
691+
692+
[apiToken](../README.md#apiToken)
693+
694+
### HTTP request headers
695+
696+
- **Content-Type**: application/json
697+
- **Accept**: application/json
698+
699+
### HTTP response details
700+
701+
| Status code | Description | Response headers |
702+
|-------------|-------------|------------------|
703+
**200** | Success response | - |
704+
**422** | Validation error response | - |
705+
**401** | Unauthenticated response | - |
706+
**500** | Error response | - |
707+
708+
[[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)
709+

0 commit comments

Comments
 (0)