hostinger-api-sdk 1.27.0 → 1.28.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 +753 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +384 -1
- package/dist/api.js +674 -4
- 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 +384 -1
- package/dist/esm/api.js +667 -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/ReachTagsApi.md +483 -0
- package/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
- package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
- package/docs/ReachV1ContactsTagsUpdateRequest.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: 1.
|
|
4
|
+
* API Version: 1.29.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: 1.
|
|
6
|
+
* API Version: 1.29.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: 1.
|
|
4
|
+
* API Version: 1.29.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: 1.
|
|
6
|
+
* API Version: 1.29.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: 1.
|
|
4
|
+
* API Version: 1.29.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: 1.
|
|
6
|
+
* API Version: 1.29.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/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.28.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: 1.
|
|
4
|
+
* API Version: 1.29.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: 1.
|
|
6
|
+
* API Version: 1.29.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: 1.
|
|
4
|
+
* API Version: 1.29.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: 1.
|
|
7
|
+
* API Version: 1.29.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
|
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
# ReachTagsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**assignAContactToATagV1**](#assignacontacttoatagv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid} | Assign a contact to a tag|
|
|
8
|
+
|[**assignContactsToATagV1**](#assigncontactstoatagv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts | Assign contacts to a tag|
|
|
9
|
+
|[**createOrFindTagsV1**](#createorfindtagsv1) | **POST** /api/reach/v1/profiles/{profileUuid}/tags | Create or find tags|
|
|
10
|
+
|[**deleteATagV1**](#deleteatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid} | Delete a tag|
|
|
11
|
+
|[**listProfileTagsV1**](#listprofiletagsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/tags | List profile tags|
|
|
12
|
+
|[**removeAContactFromATagV1**](#removeacontactfromatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid} | Remove a contact from a tag|
|
|
13
|
+
|[**removeContactsFromATagV1**](#removecontactsfromatagv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts | Remove contacts from a tag|
|
|
14
|
+
|[**renameATagV1**](#renameatagv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/tags/{tagUuid} | Rename a tag|
|
|
15
|
+
|
|
16
|
+
# **assignAContactToATagV1**
|
|
17
|
+
> ReachV1ContactsTagsTagResource assignAContactToATagV1()
|
|
18
|
+
|
|
19
|
+
Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
ReachTagsApi,
|
|
26
|
+
Configuration
|
|
27
|
+
} from 'hostinger-api-sdk';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
31
|
+
|
|
32
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
33
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
34
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.assignAContactToATagV1(
|
|
37
|
+
profileUuid,
|
|
38
|
+
tagUuid,
|
|
39
|
+
contactUuid
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
48
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
49
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
**ReachV1ContactsTagsTagResource**
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
[apiToken](../README.md#apiToken)
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: Not defined
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### HTTP response details
|
|
67
|
+
| Status code | Description | Response headers |
|
|
68
|
+
|-------------|-------------|------------------|
|
|
69
|
+
|**200** | Success response | - |
|
|
70
|
+
|**401** | Unauthenticated response | - |
|
|
71
|
+
|**500** | Error response | - |
|
|
72
|
+
|
|
73
|
+
[[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)
|
|
74
|
+
|
|
75
|
+
# **assignContactsToATagV1**
|
|
76
|
+
> CommonSuccessEmptyResource assignContactsToATagV1(reachV1ContactsTagsManageContactsRequest)
|
|
77
|
+
|
|
78
|
+
Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import {
|
|
84
|
+
ReachTagsApi,
|
|
85
|
+
Configuration,
|
|
86
|
+
ReachV1ContactsTagsManageContactsRequest
|
|
87
|
+
} from 'hostinger-api-sdk';
|
|
88
|
+
|
|
89
|
+
const configuration = new Configuration();
|
|
90
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
91
|
+
|
|
92
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
93
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
94
|
+
let reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest; //
|
|
95
|
+
|
|
96
|
+
const { status, data } = await apiInstance.assignContactsToATagV1(
|
|
97
|
+
profileUuid,
|
|
98
|
+
tagUuid,
|
|
99
|
+
reachV1ContactsTagsManageContactsRequest
|
|
100
|
+
);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
|Name | Type | Description | Notes|
|
|
106
|
+
|------------- | ------------- | ------------- | -------------|
|
|
107
|
+
| **reachV1ContactsTagsManageContactsRequest** | **ReachV1ContactsTagsManageContactsRequest**| | |
|
|
108
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
109
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**CommonSuccessEmptyResource**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
[apiToken](../README.md#apiToken)
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: application/json
|
|
123
|
+
- **Accept**: application/json
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### HTTP response details
|
|
127
|
+
| Status code | Description | Response headers |
|
|
128
|
+
|-------------|-------------|------------------|
|
|
129
|
+
|**200** | Success empty response | - |
|
|
130
|
+
|**422** | Validation error response | - |
|
|
131
|
+
|**401** | Unauthenticated response | - |
|
|
132
|
+
|**500** | Error response | - |
|
|
133
|
+
|
|
134
|
+
[[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)
|
|
135
|
+
|
|
136
|
+
# **createOrFindTagsV1**
|
|
137
|
+
> Array<ReachV1ContactsTagsTagResource> createOrFindTagsV1(reachV1ContactsTagsStoreRequest)
|
|
138
|
+
|
|
139
|
+
Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import {
|
|
145
|
+
ReachTagsApi,
|
|
146
|
+
Configuration,
|
|
147
|
+
ReachV1ContactsTagsStoreRequest
|
|
148
|
+
} from 'hostinger-api-sdk';
|
|
149
|
+
|
|
150
|
+
const configuration = new Configuration();
|
|
151
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
152
|
+
|
|
153
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
154
|
+
let reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest; //
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.createOrFindTagsV1(
|
|
157
|
+
profileUuid,
|
|
158
|
+
reachV1ContactsTagsStoreRequest
|
|
159
|
+
);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Parameters
|
|
163
|
+
|
|
164
|
+
|Name | Type | Description | Notes|
|
|
165
|
+
|------------- | ------------- | ------------- | -------------|
|
|
166
|
+
| **reachV1ContactsTagsStoreRequest** | **ReachV1ContactsTagsStoreRequest**| | |
|
|
167
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Return type
|
|
171
|
+
|
|
172
|
+
**Array<ReachV1ContactsTagsTagResource>**
|
|
173
|
+
|
|
174
|
+
### Authorization
|
|
175
|
+
|
|
176
|
+
[apiToken](../README.md#apiToken)
|
|
177
|
+
|
|
178
|
+
### HTTP request headers
|
|
179
|
+
|
|
180
|
+
- **Content-Type**: application/json
|
|
181
|
+
- **Accept**: application/json
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### HTTP response details
|
|
185
|
+
| Status code | Description | Response headers |
|
|
186
|
+
|-------------|-------------|------------------|
|
|
187
|
+
|**200** | Success response | - |
|
|
188
|
+
|**422** | Validation error response | - |
|
|
189
|
+
|**401** | Unauthenticated response | - |
|
|
190
|
+
|**500** | Error response | - |
|
|
191
|
+
|
|
192
|
+
[[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)
|
|
193
|
+
|
|
194
|
+
# **deleteATagV1**
|
|
195
|
+
> CommonSuccessEmptyResource deleteATagV1()
|
|
196
|
+
|
|
197
|
+
Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
198
|
+
|
|
199
|
+
### Example
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
import {
|
|
203
|
+
ReachTagsApi,
|
|
204
|
+
Configuration
|
|
205
|
+
} from 'hostinger-api-sdk';
|
|
206
|
+
|
|
207
|
+
const configuration = new Configuration();
|
|
208
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
209
|
+
|
|
210
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
211
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
212
|
+
|
|
213
|
+
const { status, data } = await apiInstance.deleteATagV1(
|
|
214
|
+
profileUuid,
|
|
215
|
+
tagUuid
|
|
216
|
+
);
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
|Name | Type | Description | Notes|
|
|
222
|
+
|------------- | ------------- | ------------- | -------------|
|
|
223
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
224
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### Return type
|
|
228
|
+
|
|
229
|
+
**CommonSuccessEmptyResource**
|
|
230
|
+
|
|
231
|
+
### Authorization
|
|
232
|
+
|
|
233
|
+
[apiToken](../README.md#apiToken)
|
|
234
|
+
|
|
235
|
+
### HTTP request headers
|
|
236
|
+
|
|
237
|
+
- **Content-Type**: Not defined
|
|
238
|
+
- **Accept**: application/json
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
### HTTP response details
|
|
242
|
+
| Status code | Description | Response headers |
|
|
243
|
+
|-------------|-------------|------------------|
|
|
244
|
+
|**200** | Success empty response | - |
|
|
245
|
+
|**401** | Unauthenticated response | - |
|
|
246
|
+
|**500** | Error response | - |
|
|
247
|
+
|
|
248
|
+
[[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
|
+
|
|
250
|
+
# **listProfileTagsV1**
|
|
251
|
+
> Array<ReachV1ContactsTagsTagResource> listProfileTagsV1()
|
|
252
|
+
|
|
253
|
+
Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
254
|
+
|
|
255
|
+
### Example
|
|
256
|
+
|
|
257
|
+
```typescript
|
|
258
|
+
import {
|
|
259
|
+
ReachTagsApi,
|
|
260
|
+
Configuration
|
|
261
|
+
} from 'hostinger-api-sdk';
|
|
262
|
+
|
|
263
|
+
const configuration = new Configuration();
|
|
264
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
265
|
+
|
|
266
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
267
|
+
|
|
268
|
+
const { status, data } = await apiInstance.listProfileTagsV1(
|
|
269
|
+
profileUuid
|
|
270
|
+
);
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Parameters
|
|
274
|
+
|
|
275
|
+
|Name | Type | Description | Notes|
|
|
276
|
+
|------------- | ------------- | ------------- | -------------|
|
|
277
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
### Return type
|
|
281
|
+
|
|
282
|
+
**Array<ReachV1ContactsTagsTagResource>**
|
|
283
|
+
|
|
284
|
+
### Authorization
|
|
285
|
+
|
|
286
|
+
[apiToken](../README.md#apiToken)
|
|
287
|
+
|
|
288
|
+
### HTTP request headers
|
|
289
|
+
|
|
290
|
+
- **Content-Type**: Not defined
|
|
291
|
+
- **Accept**: application/json
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
### HTTP response details
|
|
295
|
+
| Status code | Description | Response headers |
|
|
296
|
+
|-------------|-------------|------------------|
|
|
297
|
+
|**200** | Success response | - |
|
|
298
|
+
|**401** | Unauthenticated response | - |
|
|
299
|
+
|**500** | Error response | - |
|
|
300
|
+
|
|
301
|
+
[[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)
|
|
302
|
+
|
|
303
|
+
# **removeAContactFromATagV1**
|
|
304
|
+
> CommonSuccessEmptyResource removeAContactFromATagV1()
|
|
305
|
+
|
|
306
|
+
Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
307
|
+
|
|
308
|
+
### Example
|
|
309
|
+
|
|
310
|
+
```typescript
|
|
311
|
+
import {
|
|
312
|
+
ReachTagsApi,
|
|
313
|
+
Configuration
|
|
314
|
+
} from 'hostinger-api-sdk';
|
|
315
|
+
|
|
316
|
+
const configuration = new Configuration();
|
|
317
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
318
|
+
|
|
319
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
320
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
321
|
+
let contactUuid: string; //Contact uuid parameter (default to undefined)
|
|
322
|
+
|
|
323
|
+
const { status, data } = await apiInstance.removeAContactFromATagV1(
|
|
324
|
+
profileUuid,
|
|
325
|
+
tagUuid,
|
|
326
|
+
contactUuid
|
|
327
|
+
);
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Parameters
|
|
331
|
+
|
|
332
|
+
|Name | Type | Description | Notes|
|
|
333
|
+
|------------- | ------------- | ------------- | -------------|
|
|
334
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
335
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
336
|
+
| **contactUuid** | [**string**] | Contact uuid parameter | defaults to undefined|
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
**CommonSuccessEmptyResource**
|
|
342
|
+
|
|
343
|
+
### Authorization
|
|
344
|
+
|
|
345
|
+
[apiToken](../README.md#apiToken)
|
|
346
|
+
|
|
347
|
+
### HTTP request headers
|
|
348
|
+
|
|
349
|
+
- **Content-Type**: Not defined
|
|
350
|
+
- **Accept**: application/json
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### HTTP response details
|
|
354
|
+
| Status code | Description | Response headers |
|
|
355
|
+
|-------------|-------------|------------------|
|
|
356
|
+
|**200** | Success empty response | - |
|
|
357
|
+
|**401** | Unauthenticated response | - |
|
|
358
|
+
|**500** | Error response | - |
|
|
359
|
+
|
|
360
|
+
[[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)
|
|
361
|
+
|
|
362
|
+
# **removeContactsFromATagV1**
|
|
363
|
+
> CommonSuccessEmptyResource removeContactsFromATagV1(reachV1ContactsTagsManageContactsRequest)
|
|
364
|
+
|
|
365
|
+
Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
366
|
+
|
|
367
|
+
### Example
|
|
368
|
+
|
|
369
|
+
```typescript
|
|
370
|
+
import {
|
|
371
|
+
ReachTagsApi,
|
|
372
|
+
Configuration,
|
|
373
|
+
ReachV1ContactsTagsManageContactsRequest
|
|
374
|
+
} from 'hostinger-api-sdk';
|
|
375
|
+
|
|
376
|
+
const configuration = new Configuration();
|
|
377
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
378
|
+
|
|
379
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
380
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
381
|
+
let reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest; //
|
|
382
|
+
|
|
383
|
+
const { status, data } = await apiInstance.removeContactsFromATagV1(
|
|
384
|
+
profileUuid,
|
|
385
|
+
tagUuid,
|
|
386
|
+
reachV1ContactsTagsManageContactsRequest
|
|
387
|
+
);
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Parameters
|
|
391
|
+
|
|
392
|
+
|Name | Type | Description | Notes|
|
|
393
|
+
|------------- | ------------- | ------------- | -------------|
|
|
394
|
+
| **reachV1ContactsTagsManageContactsRequest** | **ReachV1ContactsTagsManageContactsRequest**| | |
|
|
395
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
396
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
### Return type
|
|
400
|
+
|
|
401
|
+
**CommonSuccessEmptyResource**
|
|
402
|
+
|
|
403
|
+
### Authorization
|
|
404
|
+
|
|
405
|
+
[apiToken](../README.md#apiToken)
|
|
406
|
+
|
|
407
|
+
### HTTP request headers
|
|
408
|
+
|
|
409
|
+
- **Content-Type**: application/json
|
|
410
|
+
- **Accept**: application/json
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### HTTP response details
|
|
414
|
+
| Status code | Description | Response headers |
|
|
415
|
+
|-------------|-------------|------------------|
|
|
416
|
+
|**200** | Success empty response | - |
|
|
417
|
+
|**422** | Validation error response | - |
|
|
418
|
+
|**401** | Unauthenticated response | - |
|
|
419
|
+
|**500** | Error response | - |
|
|
420
|
+
|
|
421
|
+
[[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)
|
|
422
|
+
|
|
423
|
+
# **renameATagV1**
|
|
424
|
+
> ReachV1ContactsTagsTagResource renameATagV1(reachV1ContactsTagsUpdateRequest)
|
|
425
|
+
|
|
426
|
+
Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
427
|
+
|
|
428
|
+
### Example
|
|
429
|
+
|
|
430
|
+
```typescript
|
|
431
|
+
import {
|
|
432
|
+
ReachTagsApi,
|
|
433
|
+
Configuration,
|
|
434
|
+
ReachV1ContactsTagsUpdateRequest
|
|
435
|
+
} from 'hostinger-api-sdk';
|
|
436
|
+
|
|
437
|
+
const configuration = new Configuration();
|
|
438
|
+
const apiInstance = new ReachTagsApi(configuration);
|
|
439
|
+
|
|
440
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
441
|
+
let tagUuid: string; //Tag uuid parameter (default to undefined)
|
|
442
|
+
let reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest; //
|
|
443
|
+
|
|
444
|
+
const { status, data } = await apiInstance.renameATagV1(
|
|
445
|
+
profileUuid,
|
|
446
|
+
tagUuid,
|
|
447
|
+
reachV1ContactsTagsUpdateRequest
|
|
448
|
+
);
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Parameters
|
|
452
|
+
|
|
453
|
+
|Name | Type | Description | Notes|
|
|
454
|
+
|------------- | ------------- | ------------- | -------------|
|
|
455
|
+
| **reachV1ContactsTagsUpdateRequest** | **ReachV1ContactsTagsUpdateRequest**| | |
|
|
456
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
457
|
+
| **tagUuid** | [**string**] | Tag uuid parameter | defaults to undefined|
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
### Return type
|
|
461
|
+
|
|
462
|
+
**ReachV1ContactsTagsTagResource**
|
|
463
|
+
|
|
464
|
+
### Authorization
|
|
465
|
+
|
|
466
|
+
[apiToken](../README.md#apiToken)
|
|
467
|
+
|
|
468
|
+
### HTTP request headers
|
|
469
|
+
|
|
470
|
+
- **Content-Type**: application/json
|
|
471
|
+
- **Accept**: application/json
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
### HTTP response details
|
|
475
|
+
| Status code | Description | Response headers |
|
|
476
|
+
|-------------|-------------|------------------|
|
|
477
|
+
|**200** | Success response | - |
|
|
478
|
+
|**422** | Validation error response | - |
|
|
479
|
+
|**401** | Unauthenticated response | - |
|
|
480
|
+
|**500** | Error response | - |
|
|
481
|
+
|
|
482
|
+
[[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)
|
|
483
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ReachV1ContactsTagsManageContactsRequest
|
|
2
|
+
|
|
3
|
+
Contacts to assign to, or remove from, a tag
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**contact_uuids** | **Array<string>** | Contacts to apply the change to. Required unless all_contacts is true. | [optional] [default to undefined]
|
|
10
|
+
**all_contacts** | **boolean** | Apply to every contact in the profile | [optional] [default to false]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ContactsTagsManageContactsRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ContactsTagsManageContactsRequest = {
|
|
18
|
+
contact_uuids,
|
|
19
|
+
all_contacts,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,21 @@
|
|
|
1
|
+
# ReachV1ContactsTagsStoreRequest
|
|
2
|
+
|
|
3
|
+
Names to create. Names that already exist in the profile are returned as they are.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**names** | **Array<string>** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachV1ContactsTagsStoreRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachV1ContactsTagsStoreRequest = {
|
|
17
|
+
names,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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,21 @@
|
|
|
1
|
+
# ReachV1ContactsTagsUpdateRequest
|
|
2
|
+
|
|
3
|
+
Rename a tag
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**value** | **string** | New tag name | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachV1ContactsTagsUpdateRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachV1ContactsTagsUpdateRequest = {
|
|
17
|
+
value,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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: 1.
|
|
6
|
+
* API Version: 1.29.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
|