hostinger-api-sdk 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +909 -115
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +520 -40
- package/dist/api.js +588 -23
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +520 -40
- package/dist/esm/api.js +574 -13
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ReachCampaignsApi.md +1 -1
- package/docs/ReachContactsApi.md +1 -1
- package/docs/ReachIntegrationsApi.md +349 -0
- package/docs/ReachTemplatesApi.md +58 -1
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +2 -0
- package/docs/{ReachV1ContactsUpdateRequestFieldsInner.md → ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md} +3 -3
- package/docs/ReachV1ContactsStoreRequest.md +2 -0
- package/docs/ReachV1ContactsUpdateRequest.md +1 -1
- package/docs/ReachV1StoresStoreResource.md +32 -0
- package/docs/ReachV1StoresStoreResourceSalesChannelsInner.md +26 -0
- package/docs/ReachV1TemplatesTemplateDetailsResource.md +28 -0
- package/docs/ReachV1WebsitesWebsiteBuilderConnectRequest.md +21 -0
- package/docs/ReachV1WebsitesWebsiteBuilderDisconnectRequest.md +21 -0
- package/docs/ReachV1WebsitesWebsiteResource.md +22 -0
- package/docs/ReachV1WebsitesWordPressDisconnectRequest.md +21 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.4.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.4.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.4.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.4.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.4.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.4.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.4.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.4.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.4.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.4.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -70,7 +70,7 @@ const { status, data } = await apiInstance.createADraftCampaignV1(
|
|
|
70
70
|
# **getCampaignDetailsV1**
|
|
71
71
|
> ReachV1CampaignsCampaignDetailsResource getCampaignDetailsV1()
|
|
72
72
|
|
|
73
|
-
Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
|
|
73
|
+
Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
|
|
74
74
|
|
|
75
75
|
### Example
|
|
76
76
|
|
package/docs/ReachContactsApi.md
CHANGED
|
@@ -73,7 +73,7 @@ const { status, data } = await apiInstance.createANewContactV1(
|
|
|
73
73
|
# **createContactsInBulkV1**
|
|
74
74
|
> CommonSuccessEmptyResource createContactsInBulkV1(reachV1ContactsBulkStoreRequest)
|
|
75
75
|
|
|
76
|
-
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
76
|
+
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
77
77
|
|
|
78
78
|
### Example
|
|
79
79
|
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# ReachIntegrationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**connectAIWebsiteBuilderSiteV1**](#connectaiwebsitebuildersitev1) | **POST** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Connect AI Website Builder site|
|
|
8
|
+
|[**disconnectAIWebsiteBuilderSiteV1**](#disconnectaiwebsitebuildersitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Disconnect AI Website Builder site|
|
|
9
|
+
|[**disconnectEcommerceStoreV1**](#disconnectecommercestorev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId} | Disconnect Ecommerce store|
|
|
10
|
+
|[**disconnectWordPressSiteV1**](#disconnectwordpresssitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/wordpress | Disconnect WordPress site|
|
|
11
|
+
|[**listConnectedWebsitesV1**](#listconnectedwebsitesv1) | **GET** /api/reach/v1/profiles/{profileUuid}/websites | List connected websites|
|
|
12
|
+
|[**listEcommerceStoresV1**](#listecommercestoresv1) | **GET** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores | List Ecommerce stores|
|
|
13
|
+
|
|
14
|
+
# **connectAIWebsiteBuilderSiteV1**
|
|
15
|
+
> CommonSuccessEmptyResource connectAIWebsiteBuilderSiteV1(reachV1WebsitesWebsiteBuilderConnectRequest)
|
|
16
|
+
|
|
17
|
+
Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
ReachIntegrationsApi,
|
|
24
|
+
Configuration,
|
|
25
|
+
ReachV1WebsitesWebsiteBuilderConnectRequest
|
|
26
|
+
} from '@hostinger/sdk';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new ReachIntegrationsApi(configuration);
|
|
30
|
+
|
|
31
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
32
|
+
let reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest; //
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.connectAIWebsiteBuilderSiteV1(
|
|
35
|
+
profileUuid,
|
|
36
|
+
reachV1WebsitesWebsiteBuilderConnectRequest
|
|
37
|
+
);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
|Name | Type | Description | Notes|
|
|
43
|
+
|------------- | ------------- | ------------- | -------------|
|
|
44
|
+
| **reachV1WebsitesWebsiteBuilderConnectRequest** | **ReachV1WebsitesWebsiteBuilderConnectRequest**| | |
|
|
45
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
**CommonSuccessEmptyResource**
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
[apiToken](../README.md#apiToken)
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: application/json
|
|
59
|
+
- **Accept**: application/json
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
|**200** | Success empty response | - |
|
|
66
|
+
|**401** | Unauthenticated response | - |
|
|
67
|
+
|**422** | Validation error response | - |
|
|
68
|
+
|**500** | Error response | - |
|
|
69
|
+
|
|
70
|
+
[[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)
|
|
71
|
+
|
|
72
|
+
# **disconnectAIWebsiteBuilderSiteV1**
|
|
73
|
+
> CommonSuccessEmptyResource disconnectAIWebsiteBuilderSiteV1(reachV1WebsitesWebsiteBuilderDisconnectRequest)
|
|
74
|
+
|
|
75
|
+
Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
ReachIntegrationsApi,
|
|
82
|
+
Configuration,
|
|
83
|
+
ReachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
84
|
+
} from '@hostinger/sdk';
|
|
85
|
+
|
|
86
|
+
const configuration = new Configuration();
|
|
87
|
+
const apiInstance = new ReachIntegrationsApi(configuration);
|
|
88
|
+
|
|
89
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
90
|
+
let reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest; //
|
|
91
|
+
|
|
92
|
+
const { status, data } = await apiInstance.disconnectAIWebsiteBuilderSiteV1(
|
|
93
|
+
profileUuid,
|
|
94
|
+
reachV1WebsitesWebsiteBuilderDisconnectRequest
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **reachV1WebsitesWebsiteBuilderDisconnectRequest** | **ReachV1WebsitesWebsiteBuilderDisconnectRequest**| | |
|
|
103
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Return type
|
|
107
|
+
|
|
108
|
+
**CommonSuccessEmptyResource**
|
|
109
|
+
|
|
110
|
+
### Authorization
|
|
111
|
+
|
|
112
|
+
[apiToken](../README.md#apiToken)
|
|
113
|
+
|
|
114
|
+
### HTTP request headers
|
|
115
|
+
|
|
116
|
+
- **Content-Type**: application/json
|
|
117
|
+
- **Accept**: application/json
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### HTTP response details
|
|
121
|
+
| Status code | Description | Response headers |
|
|
122
|
+
|-------------|-------------|------------------|
|
|
123
|
+
|**200** | Success empty response | - |
|
|
124
|
+
|**422** | Validation error response | - |
|
|
125
|
+
|**401** | Unauthenticated response | - |
|
|
126
|
+
|**500** | Error response | - |
|
|
127
|
+
|
|
128
|
+
[[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)
|
|
129
|
+
|
|
130
|
+
# **disconnectEcommerceStoreV1**
|
|
131
|
+
> CommonSuccessEmptyResource disconnectEcommerceStoreV1()
|
|
132
|
+
|
|
133
|
+
Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
|
|
134
|
+
|
|
135
|
+
### Example
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import {
|
|
139
|
+
ReachIntegrationsApi,
|
|
140
|
+
Configuration
|
|
141
|
+
} from '@hostinger/sdk';
|
|
142
|
+
|
|
143
|
+
const configuration = new Configuration();
|
|
144
|
+
const apiInstance = new ReachIntegrationsApi(configuration);
|
|
145
|
+
|
|
146
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
147
|
+
let storeId: string; //Hostinger eCommerce store ID, as returned by the eCommerce stores list (default to undefined)
|
|
148
|
+
|
|
149
|
+
const { status, data } = await apiInstance.disconnectEcommerceStoreV1(
|
|
150
|
+
profileUuid,
|
|
151
|
+
storeId
|
|
152
|
+
);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
|Name | Type | Description | Notes|
|
|
158
|
+
|------------- | ------------- | ------------- | -------------|
|
|
159
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
160
|
+
| **storeId** | [**string**] | Hostinger eCommerce store ID, as returned by the eCommerce stores list | defaults to undefined|
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
**CommonSuccessEmptyResource**
|
|
166
|
+
|
|
167
|
+
### Authorization
|
|
168
|
+
|
|
169
|
+
[apiToken](../README.md#apiToken)
|
|
170
|
+
|
|
171
|
+
### HTTP request headers
|
|
172
|
+
|
|
173
|
+
- **Content-Type**: Not defined
|
|
174
|
+
- **Accept**: application/json
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### HTTP response details
|
|
178
|
+
| Status code | Description | Response headers |
|
|
179
|
+
|-------------|-------------|------------------|
|
|
180
|
+
|**200** | Success empty 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
|
+
|
|
186
|
+
# **disconnectWordPressSiteV1**
|
|
187
|
+
> CommonSuccessEmptyResource disconnectWordPressSiteV1(reachV1WebsitesWordPressDisconnectRequest)
|
|
188
|
+
|
|
189
|
+
Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
|
|
190
|
+
|
|
191
|
+
### Example
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
import {
|
|
195
|
+
ReachIntegrationsApi,
|
|
196
|
+
Configuration,
|
|
197
|
+
ReachV1WebsitesWordPressDisconnectRequest
|
|
198
|
+
} from '@hostinger/sdk';
|
|
199
|
+
|
|
200
|
+
const configuration = new Configuration();
|
|
201
|
+
const apiInstance = new ReachIntegrationsApi(configuration);
|
|
202
|
+
|
|
203
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
204
|
+
let reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest; //
|
|
205
|
+
|
|
206
|
+
const { status, data } = await apiInstance.disconnectWordPressSiteV1(
|
|
207
|
+
profileUuid,
|
|
208
|
+
reachV1WebsitesWordPressDisconnectRequest
|
|
209
|
+
);
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Parameters
|
|
213
|
+
|
|
214
|
+
|Name | Type | Description | Notes|
|
|
215
|
+
|------------- | ------------- | ------------- | -------------|
|
|
216
|
+
| **reachV1WebsitesWordPressDisconnectRequest** | **ReachV1WebsitesWordPressDisconnectRequest**| | |
|
|
217
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Return type
|
|
221
|
+
|
|
222
|
+
**CommonSuccessEmptyResource**
|
|
223
|
+
|
|
224
|
+
### Authorization
|
|
225
|
+
|
|
226
|
+
[apiToken](../README.md#apiToken)
|
|
227
|
+
|
|
228
|
+
### HTTP request headers
|
|
229
|
+
|
|
230
|
+
- **Content-Type**: application/json
|
|
231
|
+
- **Accept**: application/json
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### HTTP response details
|
|
235
|
+
| Status code | Description | Response headers |
|
|
236
|
+
|-------------|-------------|------------------|
|
|
237
|
+
|**200** | Success empty response | - |
|
|
238
|
+
|**422** | Validation error response | - |
|
|
239
|
+
|**401** | Unauthenticated response | - |
|
|
240
|
+
|**500** | Error response | - |
|
|
241
|
+
|
|
242
|
+
[[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)
|
|
243
|
+
|
|
244
|
+
# **listConnectedWebsitesV1**
|
|
245
|
+
> Array<ReachV1WebsitesWebsiteResource> listConnectedWebsitesV1()
|
|
246
|
+
|
|
247
|
+
Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
import {
|
|
253
|
+
ReachIntegrationsApi,
|
|
254
|
+
Configuration
|
|
255
|
+
} from '@hostinger/sdk';
|
|
256
|
+
|
|
257
|
+
const configuration = new Configuration();
|
|
258
|
+
const apiInstance = new ReachIntegrationsApi(configuration);
|
|
259
|
+
|
|
260
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
261
|
+
|
|
262
|
+
const { status, data } = await apiInstance.listConnectedWebsitesV1(
|
|
263
|
+
profileUuid
|
|
264
|
+
);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
|Name | Type | Description | Notes|
|
|
270
|
+
|------------- | ------------- | ------------- | -------------|
|
|
271
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**Array<ReachV1WebsitesWebsiteResource>**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[apiToken](../README.md#apiToken)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: Not defined
|
|
285
|
+
- **Accept**: application/json
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | Success response | - |
|
|
292
|
+
|**401** | Unauthenticated response | - |
|
|
293
|
+
|**500** | Error response | - |
|
|
294
|
+
|
|
295
|
+
[[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)
|
|
296
|
+
|
|
297
|
+
# **listEcommerceStoresV1**
|
|
298
|
+
> Array<ReachV1StoresStoreResource> listEcommerceStoresV1()
|
|
299
|
+
|
|
300
|
+
Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
|
|
301
|
+
|
|
302
|
+
### Example
|
|
303
|
+
|
|
304
|
+
```typescript
|
|
305
|
+
import {
|
|
306
|
+
ReachIntegrationsApi,
|
|
307
|
+
Configuration
|
|
308
|
+
} from '@hostinger/sdk';
|
|
309
|
+
|
|
310
|
+
const configuration = new Configuration();
|
|
311
|
+
const apiInstance = new ReachIntegrationsApi(configuration);
|
|
312
|
+
|
|
313
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
314
|
+
|
|
315
|
+
const { status, data } = await apiInstance.listEcommerceStoresV1(
|
|
316
|
+
profileUuid
|
|
317
|
+
);
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Parameters
|
|
321
|
+
|
|
322
|
+
|Name | Type | Description | Notes|
|
|
323
|
+
|------------- | ------------- | ------------- | -------------|
|
|
324
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
### Return type
|
|
328
|
+
|
|
329
|
+
**Array<ReachV1StoresStoreResource>**
|
|
330
|
+
|
|
331
|
+
### Authorization
|
|
332
|
+
|
|
333
|
+
[apiToken](../README.md#apiToken)
|
|
334
|
+
|
|
335
|
+
### HTTP request headers
|
|
336
|
+
|
|
337
|
+
- **Content-Type**: Not defined
|
|
338
|
+
- **Accept**: application/json
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### HTTP response details
|
|
342
|
+
| Status code | Description | Response headers |
|
|
343
|
+
|-------------|-------------|------------------|
|
|
344
|
+
|**200** | Success response | - |
|
|
345
|
+
|**401** | Unauthenticated response | - |
|
|
346
|
+
|**500** | Error response | - |
|
|
347
|
+
|
|
348
|
+
[[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)
|
|
349
|
+
|
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createAnEmailTemplateV1**](#createanemailtemplatev1) | **POST** /api/reach/v1/profiles/{profileUuid}/templates | Create an email template|
|
|
8
|
+
|[**getEmailTemplateV1**](#getemailtemplatev1) | **GET** /api/reach/v1/profiles/{profileUuid}/templates/{templateUuid} | Get email template|
|
|
8
9
|
|[**listEmailTemplatesV1**](#listemailtemplatesv1) | **GET** /api/reach/v1/profiles/{profileUuid}/templates | List email templates|
|
|
9
10
|
|
|
10
11
|
# **createAnEmailTemplateV1**
|
|
@@ -65,10 +66,66 @@ const { status, data } = await apiInstance.createAnEmailTemplateV1(
|
|
|
65
66
|
|
|
66
67
|
[[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)
|
|
67
68
|
|
|
69
|
+
# **getEmailTemplateV1**
|
|
70
|
+
> ReachV1TemplatesTemplateDetailsResource getEmailTemplateV1()
|
|
71
|
+
|
|
72
|
+
Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
ReachTemplatesApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@hostinger/sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new ReachTemplatesApi(configuration);
|
|
84
|
+
|
|
85
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
86
|
+
let templateUuid: string; //Template uuid parameter (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.getEmailTemplateV1(
|
|
89
|
+
profileUuid,
|
|
90
|
+
templateUuid
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
99
|
+
| **templateUuid** | [**string**] | Template uuid parameter | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**ReachV1TemplatesTemplateDetailsResource**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[apiToken](../README.md#apiToken)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Success response | - |
|
|
120
|
+
|**401** | Unauthenticated response | - |
|
|
121
|
+
|**500** | Error response | - |
|
|
122
|
+
|
|
123
|
+
[[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)
|
|
124
|
+
|
|
68
125
|
# **listEmailTemplatesV1**
|
|
69
126
|
> Array<ReachV1TemplatesTemplateResource> listEmailTemplatesV1()
|
|
70
127
|
|
|
71
|
-
Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned
|
|
128
|
+
Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
|
|
72
129
|
|
|
73
130
|
### Example
|
|
74
131
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**surname** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: ReachV1ContactsBulkStoreRequestContactsInner = {
|
|
|
20
21
|
name,
|
|
21
22
|
surname,
|
|
22
23
|
phone,
|
|
24
|
+
fields,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {
|
|
15
|
+
import { ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner } from '@hostinger/sdk';
|
|
16
16
|
|
|
17
|
-
const instance:
|
|
17
|
+
const instance: ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner = {
|
|
18
18
|
uuid,
|
|
19
19
|
value,
|
|
20
20
|
selected_option_uuids,
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
12
|
**note** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**tag_uuids** | **Array<string>** | Existing tags to attach to the created contact | [optional] [default to undefined]
|
|
14
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: ReachV1ContactsStoreRequest = {
|
|
|
24
25
|
phone,
|
|
25
26
|
note,
|
|
26
27
|
tag_uuids,
|
|
28
|
+
fields,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
13
13
|
**subscription_status** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**note** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**fields** | [**Array<
|
|
15
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Set custom field values. Omit to leave untouched, send an empty array to clear them all. | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ReachV1StoresStoreResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**store_id** | **string** | Pass this to the disconnect eCommerce store endpoint. | [optional] [default to undefined]
|
|
9
|
+
**business_name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**domain** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**logo_url** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**version** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**sales_channels** | [**Array<ReachV1StoresStoreResourceSalesChannelsInner>**](ReachV1StoresStoreResourceSalesChannelsInner.md) | Storefronts of the store. | [optional] [default to undefined]
|
|
14
|
+
**connection_status** | **string** | `connected` to the profile in the path, `connected_to_other_profile` when another profile of the account holds it, or `not_connected`. | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ReachV1StoresStoreResource } from '@hostinger/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ReachV1StoresStoreResource = {
|
|
22
|
+
store_id,
|
|
23
|
+
business_name,
|
|
24
|
+
domain,
|
|
25
|
+
logo_url,
|
|
26
|
+
version,
|
|
27
|
+
sales_channels,
|
|
28
|
+
connection_status,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|