hostinger-api-sdk 2.15.0 → 2.16.1
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 +609 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +374 -2
- package/dist/api.js +445 -14
- 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 +374 -2
- package/dist/esm/api.js +428 -1
- 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/GPUExposedServicesApi.md +177 -0
- package/docs/GPUV1ExposedServiceExposedServiceResource.md +32 -0
- package/docs/GPUV1ExposedServiceStoreRequest.md +26 -0
- package/docs/ReachCampaignsApi.md +119 -0
- package/docs/ReachV1CampaignsCreatedCampaignResource.md +1 -1
- package/docs/ReachV1CampaignsUpdateRequest.md +37 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# GPUExposedServicesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createExposedServiceV1**](#createexposedservicev1) | **POST** /api/gpu/v1/instances/{instanceId}/exposed-services | Create exposed service|
|
|
8
|
+
|[**deleteExposedServiceV1**](#deleteexposedservicev1) | **DELETE** /api/gpu/v1/instances/{instanceId}/exposed-services/{exposedServiceId} | Delete exposed service|
|
|
9
|
+
|[**getExposedServicesV1**](#getexposedservicesv1) | **GET** /api/gpu/v1/instances/{instanceId}/exposed-services | Get exposed services|
|
|
10
|
+
|
|
11
|
+
# **createExposedServiceV1**
|
|
12
|
+
> CommonSuccessEmptyResource createExposedServiceV1(gPUV1ExposedServiceStoreRequest)
|
|
13
|
+
|
|
14
|
+
Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
GPUExposedServicesApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
GPUV1ExposedServiceStoreRequest
|
|
23
|
+
} from '@hostinger/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new GPUExposedServicesApi(configuration);
|
|
27
|
+
|
|
28
|
+
let instanceId: number; //GPU instance ID (default to undefined)
|
|
29
|
+
let gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.createExposedServiceV1(
|
|
32
|
+
instanceId,
|
|
33
|
+
gPUV1ExposedServiceStoreRequest
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **gPUV1ExposedServiceStoreRequest** | **GPUV1ExposedServiceStoreRequest**| | |
|
|
42
|
+
| **instanceId** | [**number**] | GPU instance ID | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**CommonSuccessEmptyResource**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[apiToken](../README.md#apiToken)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | Success empty response | - |
|
|
63
|
+
|**422** | Validation error response | - |
|
|
64
|
+
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**500** | Error response | - |
|
|
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)
|
|
68
|
+
|
|
69
|
+
# **deleteExposedServiceV1**
|
|
70
|
+
> CommonSuccessEmptyResource deleteExposedServiceV1()
|
|
71
|
+
|
|
72
|
+
Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
GPUExposedServicesApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@hostinger/sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new GPUExposedServicesApi(configuration);
|
|
84
|
+
|
|
85
|
+
let instanceId: number; //GPU instance ID (default to undefined)
|
|
86
|
+
let exposedServiceId: number; //Exposed service ID (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.deleteExposedServiceV1(
|
|
89
|
+
instanceId,
|
|
90
|
+
exposedServiceId
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **instanceId** | [**number**] | GPU instance ID | defaults to undefined|
|
|
99
|
+
| **exposedServiceId** | [**number**] | Exposed service ID | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**CommonSuccessEmptyResource**
|
|
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 empty 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
|
+
|
|
125
|
+
# **getExposedServicesV1**
|
|
126
|
+
> Array<GPUV1ExposedServiceExposedServiceResource> getExposedServicesV1()
|
|
127
|
+
|
|
128
|
+
Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import {
|
|
134
|
+
GPUExposedServicesApi,
|
|
135
|
+
Configuration
|
|
136
|
+
} from '@hostinger/sdk';
|
|
137
|
+
|
|
138
|
+
const configuration = new Configuration();
|
|
139
|
+
const apiInstance = new GPUExposedServicesApi(configuration);
|
|
140
|
+
|
|
141
|
+
let instanceId: number; //GPU instance ID (default to undefined)
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.getExposedServicesV1(
|
|
144
|
+
instanceId
|
|
145
|
+
);
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Parameters
|
|
149
|
+
|
|
150
|
+
|Name | Type | Description | Notes|
|
|
151
|
+
|------------- | ------------- | ------------- | -------------|
|
|
152
|
+
| **instanceId** | [**number**] | GPU instance ID | defaults to undefined|
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Return type
|
|
156
|
+
|
|
157
|
+
**Array<GPUV1ExposedServiceExposedServiceResource>**
|
|
158
|
+
|
|
159
|
+
### Authorization
|
|
160
|
+
|
|
161
|
+
[apiToken](../README.md#apiToken)
|
|
162
|
+
|
|
163
|
+
### HTTP request headers
|
|
164
|
+
|
|
165
|
+
- **Content-Type**: Not defined
|
|
166
|
+
- **Accept**: application/json
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### HTTP response details
|
|
170
|
+
| Status code | Description | Response headers |
|
|
171
|
+
|-------------|-------------|------------------|
|
|
172
|
+
|**200** | Success response | - |
|
|
173
|
+
|**401** | Unauthenticated response | - |
|
|
174
|
+
|**500** | Error response | - |
|
|
175
|
+
|
|
176
|
+
[[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)
|
|
177
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# GPUV1ExposedServiceExposedServiceResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Exposed service ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**hostname** | **string** | Public hostname or IP address of the service | [optional] [default to undefined]
|
|
11
|
+
**internal_port** | **number** | Port the service listens on inside the instance | [optional] [default to undefined]
|
|
12
|
+
**external_port** | **number** | Public port the service is reachable on | [optional] [default to undefined]
|
|
13
|
+
**protocol** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { GPUV1ExposedServiceExposedServiceResource } from '@hostinger/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: GPUV1ExposedServiceExposedServiceResource = {
|
|
22
|
+
id,
|
|
23
|
+
name,
|
|
24
|
+
hostname,
|
|
25
|
+
internal_port,
|
|
26
|
+
external_port,
|
|
27
|
+
protocol,
|
|
28
|
+
type,
|
|
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GPUV1ExposedServiceStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Service name, unique within the instance | [default to undefined]
|
|
9
|
+
**internal_port** | **number** | Port the service listens on inside the instance, unique within the instance | [default to undefined]
|
|
10
|
+
**protocol** | **string** | | [default to undefined]
|
|
11
|
+
**type** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GPUV1ExposedServiceStoreRequest } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GPUV1ExposedServiceStoreRequest = {
|
|
19
|
+
name,
|
|
20
|
+
internal_port,
|
|
21
|
+
protocol,
|
|
22
|
+
type,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -8,6 +8,8 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
8
8
|
|[**getCampaignDetailsV1**](#getcampaigndetailsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid} | Get campaign details|
|
|
9
9
|
|[**getCampaignPerformanceV1**](#getcampaignperformancev1) | **GET** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/statistics | Get campaign performance|
|
|
10
10
|
|[**listCampaignsV1**](#listcampaignsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/campaigns | List campaigns|
|
|
11
|
+
|[**sendCampaignV1**](#sendcampaignv1) | **POST** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/send | Send campaign|
|
|
12
|
+
|[**updateCampaignV1**](#updatecampaignv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid} | Update campaign|
|
|
11
13
|
|
|
12
14
|
# **createADraftCampaignV1**
|
|
13
15
|
> ReachV1CampaignsCreatedCampaignResource createADraftCampaignV1(reachV1CampaignsStoreRequest)
|
|
@@ -247,3 +249,120 @@ const { status, data } = await apiInstance.listCampaignsV1(
|
|
|
247
249
|
|
|
248
250
|
[[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)
|
|
249
251
|
|
|
252
|
+
# **sendCampaignV1**
|
|
253
|
+
> CommonSuccessEmptyResource sendCampaignV1()
|
|
254
|
+
|
|
255
|
+
Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
256
|
+
|
|
257
|
+
### Example
|
|
258
|
+
|
|
259
|
+
```typescript
|
|
260
|
+
import {
|
|
261
|
+
ReachCampaignsApi,
|
|
262
|
+
Configuration
|
|
263
|
+
} from '@hostinger/sdk';
|
|
264
|
+
|
|
265
|
+
const configuration = new Configuration();
|
|
266
|
+
const apiInstance = new ReachCampaignsApi(configuration);
|
|
267
|
+
|
|
268
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
269
|
+
let campaignUuid: string; //Campaign uuid parameter (default to undefined)
|
|
270
|
+
|
|
271
|
+
const { status, data } = await apiInstance.sendCampaignV1(
|
|
272
|
+
profileUuid,
|
|
273
|
+
campaignUuid
|
|
274
|
+
);
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Parameters
|
|
278
|
+
|
|
279
|
+
|Name | Type | Description | Notes|
|
|
280
|
+
|------------- | ------------- | ------------- | -------------|
|
|
281
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
282
|
+
| **campaignUuid** | [**string**] | Campaign uuid parameter | defaults to undefined|
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### Return type
|
|
286
|
+
|
|
287
|
+
**CommonSuccessEmptyResource**
|
|
288
|
+
|
|
289
|
+
### Authorization
|
|
290
|
+
|
|
291
|
+
[apiToken](../README.md#apiToken)
|
|
292
|
+
|
|
293
|
+
### HTTP request headers
|
|
294
|
+
|
|
295
|
+
- **Content-Type**: Not defined
|
|
296
|
+
- **Accept**: application/json
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### HTTP response details
|
|
300
|
+
| Status code | Description | Response headers |
|
|
301
|
+
|-------------|-------------|------------------|
|
|
302
|
+
|**200** | Success empty response | - |
|
|
303
|
+
|**401** | Unauthenticated response | - |
|
|
304
|
+
|**500** | Error response | - |
|
|
305
|
+
|
|
306
|
+
[[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)
|
|
307
|
+
|
|
308
|
+
# **updateCampaignV1**
|
|
309
|
+
> ReachV1CampaignsCreatedCampaignResource updateCampaignV1(reachV1CampaignsUpdateRequest)
|
|
310
|
+
|
|
311
|
+
Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
312
|
+
|
|
313
|
+
### Example
|
|
314
|
+
|
|
315
|
+
```typescript
|
|
316
|
+
import {
|
|
317
|
+
ReachCampaignsApi,
|
|
318
|
+
Configuration,
|
|
319
|
+
ReachV1CampaignsUpdateRequest
|
|
320
|
+
} from '@hostinger/sdk';
|
|
321
|
+
|
|
322
|
+
const configuration = new Configuration();
|
|
323
|
+
const apiInstance = new ReachCampaignsApi(configuration);
|
|
324
|
+
|
|
325
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
326
|
+
let campaignUuid: string; //Campaign uuid parameter (default to undefined)
|
|
327
|
+
let reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest; //
|
|
328
|
+
|
|
329
|
+
const { status, data } = await apiInstance.updateCampaignV1(
|
|
330
|
+
profileUuid,
|
|
331
|
+
campaignUuid,
|
|
332
|
+
reachV1CampaignsUpdateRequest
|
|
333
|
+
);
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Parameters
|
|
337
|
+
|
|
338
|
+
|Name | Type | Description | Notes|
|
|
339
|
+
|------------- | ------------- | ------------- | -------------|
|
|
340
|
+
| **reachV1CampaignsUpdateRequest** | **ReachV1CampaignsUpdateRequest**| | |
|
|
341
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
342
|
+
| **campaignUuid** | [**string**] | Campaign uuid parameter | defaults to undefined|
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
### Return type
|
|
346
|
+
|
|
347
|
+
**ReachV1CampaignsCreatedCampaignResource**
|
|
348
|
+
|
|
349
|
+
### Authorization
|
|
350
|
+
|
|
351
|
+
[apiToken](../README.md#apiToken)
|
|
352
|
+
|
|
353
|
+
### HTTP request headers
|
|
354
|
+
|
|
355
|
+
- **Content-Type**: application/json
|
|
356
|
+
- **Accept**: application/json
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### HTTP response details
|
|
360
|
+
| Status code | Description | Response headers |
|
|
361
|
+
|-------------|-------------|------------------|
|
|
362
|
+
|**200** | Success response | - |
|
|
363
|
+
|**422** | Validation error response | - |
|
|
364
|
+
|**401** | Unauthenticated response | - |
|
|
365
|
+
|**500** | Error response | - |
|
|
366
|
+
|
|
367
|
+
[[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)
|
|
368
|
+
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**sender_name** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**sender_email** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**template_uuid** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**status** | **string** | Always `draft` for a campaign that was just created. | [optional] [default to undefined]
|
|
15
|
+
**status** | **string** | Always `draft` for a campaign that was just created; the current status after an update. | [optional] [default to undefined]
|
|
16
16
|
**type** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**is_all_contacts** | **boolean** | Whether the campaign targets every contact instead of selected segments. | [optional] [default to undefined]
|
|
18
18
|
**metadata** | **{ [key: string]: string; }** | The stored extra fields, including the ones Reach sets itself. | [optional] [default to undefined]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ReachV1CampaignsUpdateRequest
|
|
2
|
+
|
|
3
|
+
Update a campaign. Send at least one field; fields left out keep their current value.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**title** | **string** | Name the campaign is listed under. Not shown to the recipients. | [optional] [default to undefined]
|
|
10
|
+
**subject** | **string** | Subject line of the email. | [optional] [default to undefined]
|
|
11
|
+
**sender_name** | **string** | From name shown to the recipients. | [optional] [default to undefined]
|
|
12
|
+
**sender_email** | **string** | From address of the campaign. Its domain has to be verified on the profile before the campaign can be sent. | [optional] [default to undefined]
|
|
13
|
+
**template_uuid** | **string** | Template to send, as returned by the template endpoints. | [optional] [default to undefined]
|
|
14
|
+
**all_contacts** | **boolean** | `true` targets every contact of the profile, `false` targets only `segment_uuids`. Required when `segment_uuids` or `excluded_segment_uuids` is sent. | [optional] [default to undefined]
|
|
15
|
+
**segment_uuids** | **Array<string>** | Segments to target. Replaces the segments currently targeted. | [optional] [default to undefined]
|
|
16
|
+
**excluded_segment_uuids** | **Array<string>** | Segments to leave out. Only allowed together with `all_contacts: true`. | [optional] [default to undefined]
|
|
17
|
+
**metadata** | [**ReachV1CampaignsStoreRequestMetadata**](ReachV1CampaignsStoreRequestMetadata.md) | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { ReachV1CampaignsUpdateRequest } from '@hostinger/sdk';
|
|
23
|
+
|
|
24
|
+
const instance: ReachV1CampaignsUpdateRequest = {
|
|
25
|
+
title,
|
|
26
|
+
subject,
|
|
27
|
+
sender_name,
|
|
28
|
+
sender_email,
|
|
29
|
+
template_uuid,
|
|
30
|
+
all_contacts,
|
|
31
|
+
segment_uuids,
|
|
32
|
+
excluded_segment_uuids,
|
|
33
|
+
metadata,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.16.1
|
|
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
|