hostinger-api-sdk 1.2.0 → 1.3.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.
Files changed (55) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2249 -120
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1339 -73
  7. package/dist/api.js +1710 -104
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1339 -73
  15. package/dist/esm/api.js +1681 -96
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceSalesChannelsApi.md +66 -4
  27. package/docs/EcommerceStoresApi.md +54 -0
  28. package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
  30. package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
  31. package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
  32. package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
  33. package/docs/WordPressAIToolsApi.md +129 -0
  34. package/docs/WordPressInstallationsApi.md +408 -0
  35. package/docs/WordPressLiteSpeedCacheApi.md +121 -0
  36. package/docs/WordPressLoginApi.md +64 -0
  37. package/docs/WordPressMaintenanceApi.md +126 -0
  38. package/docs/WordPressObjectCacheApi.md +126 -0
  39. package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
  40. package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
  41. package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
  42. package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
  43. package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
  44. package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
  45. package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
  46. package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
  47. package/docs/WordPressV1InstallationsVersionResource.md +22 -0
  48. package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
  49. package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
  50. package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
  51. package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
  52. package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
  53. package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
  54. package/index.ts +1 -1
  55. package/package.json +1 -1
@@ -4,8 +4,243 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**checkIfWordPressInstallationsAreValidV1**](#checkifwordpressinstallationsarevalidv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid | Check if WordPress installations are valid|
8
+ |[**deleteWordPressInstallationV1**](#deletewordpressinstallationv1) | **DELETE** /api/hosting/v1/accounts/{username}/wordpress/{software} | Delete WordPress installation|
9
+ |[**detectWordPressInstallationsV1**](#detectwordpressinstallationsv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations/detect | Detect WordPress installations|
10
+ |[**getInstallationJWTTokenV1**](#getinstallationjwttokenv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token | Get installation JWT token|
7
11
  |[**installWordPressV1**](#installwordpressv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations | Install WordPress|
12
+ |[**listAvailableWordPressCoreUpdatesV1**](#listavailablewordpresscoreupdatesv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/updates | List available WordPress core updates|
8
13
  |[**listWordPressInstallationsV1**](#listwordpressinstallationsv1) | **GET** /api/hosting/v1/wordpress/installations | List WordPress installations|
14
+ |[**showWordPressCoreVersionV1**](#showwordpresscoreversionv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/version | Show WordPress core version|
15
+ |[**updateWordPressCoreV1**](#updatewordpresscorev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/update | Update WordPress core|
16
+
17
+ # **checkIfWordPressInstallationsAreValidV1**
18
+ > Array<WordPressV1InstallationsCheckIsValidResultResource> checkIfWordPressInstallationsAreValidV1(wordPressV1InstallationsCheckIsValidRequest)
19
+
20
+ Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
21
+
22
+ ### Example
23
+
24
+ ```typescript
25
+ import {
26
+ WordPressInstallationsApi,
27
+ Configuration,
28
+ WordPressV1InstallationsCheckIsValidRequest
29
+ } from 'hostinger-api-sdk';
30
+
31
+ const configuration = new Configuration();
32
+ const apiInstance = new WordPressInstallationsApi(configuration);
33
+
34
+ let username: string; // (default to undefined)
35
+ let wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest; //
36
+
37
+ const { status, data } = await apiInstance.checkIfWordPressInstallationsAreValidV1(
38
+ username,
39
+ wordPressV1InstallationsCheckIsValidRequest
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **wordPressV1InstallationsCheckIsValidRequest** | **WordPressV1InstallationsCheckIsValidRequest**| | |
48
+ | **username** | [**string**] | | defaults to undefined|
49
+
50
+
51
+ ### Return type
52
+
53
+ **Array<WordPressV1InstallationsCheckIsValidResultResource>**
54
+
55
+ ### Authorization
56
+
57
+ [apiToken](../README.md#apiToken)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+ ### HTTP response details
66
+ | Status code | Description | Response headers |
67
+ |-------------|-------------|------------------|
68
+ |**200** | Success response | - |
69
+ |**422** | Validation error 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
+ # **deleteWordPressInstallationV1**
76
+ > CommonSuccessEmptyResource deleteWordPressInstallationV1(wordPressV1InstallationsDeleteInstallationRequest)
77
+
78
+ Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ WordPressInstallationsApi,
85
+ Configuration,
86
+ WordPressV1InstallationsDeleteInstallationRequest
87
+ } from 'hostinger-api-sdk';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new WordPressInstallationsApi(configuration);
91
+
92
+ let username: string; // (default to undefined)
93
+ let software: string; //WordPress installation (software) identifier (default to undefined)
94
+ let wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest; //
95
+
96
+ const { status, data } = await apiInstance.deleteWordPressInstallationV1(
97
+ username,
98
+ software,
99
+ wordPressV1InstallationsDeleteInstallationRequest
100
+ );
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ |Name | Type | Description | Notes|
106
+ |------------- | ------------- | ------------- | -------------|
107
+ | **wordPressV1InstallationsDeleteInstallationRequest** | **WordPressV1InstallationsDeleteInstallationRequest**| | |
108
+ | **username** | [**string**] | | defaults to undefined|
109
+ | **software** | [**string**] | WordPress installation (software) identifier | 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
+ # **detectWordPressInstallationsV1**
137
+ > CommonSuccessEmptyResource detectWordPressInstallationsV1()
138
+
139
+ Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
140
+
141
+ ### Example
142
+
143
+ ```typescript
144
+ import {
145
+ WordPressInstallationsApi,
146
+ Configuration
147
+ } from 'hostinger-api-sdk';
148
+
149
+ const configuration = new Configuration();
150
+ const apiInstance = new WordPressInstallationsApi(configuration);
151
+
152
+ let username: string; // (default to undefined)
153
+
154
+ const { status, data } = await apiInstance.detectWordPressInstallationsV1(
155
+ username
156
+ );
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ |Name | Type | Description | Notes|
162
+ |------------- | ------------- | ------------- | -------------|
163
+ | **username** | [**string**] | | defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **CommonSuccessEmptyResource**
169
+
170
+ ### Authorization
171
+
172
+ [apiToken](../README.md#apiToken)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | Success empty response | - |
184
+ |**401** | Unauthenticated response | - |
185
+ |**500** | Error response | - |
186
+
187
+ [[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)
188
+
189
+ # **getInstallationJWTTokenV1**
190
+ > WordPressV1InstallationsJwtTokenResource getInstallationJWTTokenV1()
191
+
192
+ Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
193
+
194
+ ### Example
195
+
196
+ ```typescript
197
+ import {
198
+ WordPressInstallationsApi,
199
+ Configuration
200
+ } from 'hostinger-api-sdk';
201
+
202
+ const configuration = new Configuration();
203
+ const apiInstance = new WordPressInstallationsApi(configuration);
204
+
205
+ let username: string; // (default to undefined)
206
+ let software: string; //WordPress installation (software) identifier (default to undefined)
207
+
208
+ const { status, data } = await apiInstance.getInstallationJWTTokenV1(
209
+ username,
210
+ software
211
+ );
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ |Name | Type | Description | Notes|
217
+ |------------- | ------------- | ------------- | -------------|
218
+ | **username** | [**string**] | | defaults to undefined|
219
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
220
+
221
+
222
+ ### Return type
223
+
224
+ **WordPressV1InstallationsJwtTokenResource**
225
+
226
+ ### Authorization
227
+
228
+ [apiToken](../README.md#apiToken)
229
+
230
+ ### HTTP request headers
231
+
232
+ - **Content-Type**: Not defined
233
+ - **Accept**: application/json
234
+
235
+
236
+ ### HTTP response details
237
+ | Status code | Description | Response headers |
238
+ |-------------|-------------|------------------|
239
+ |**200** | Success response | - |
240
+ |**401** | Unauthenticated response | - |
241
+ |**500** | Error response | - |
242
+
243
+ [[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)
9
244
 
10
245
  # **installWordPressV1**
11
246
  > CommonSuccessEmptyResource installWordPressV1(wordPressV1InstallationsInstallWordPressRequest)
@@ -65,6 +300,62 @@ const { status, data } = await apiInstance.installWordPressV1(
65
300
 
66
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)
67
302
 
303
+ # **listAvailableWordPressCoreUpdatesV1**
304
+ > Array<WordPressV1InstallationsUpdateResource> listAvailableWordPressCoreUpdatesV1()
305
+
306
+ List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
307
+
308
+ ### Example
309
+
310
+ ```typescript
311
+ import {
312
+ WordPressInstallationsApi,
313
+ Configuration
314
+ } from 'hostinger-api-sdk';
315
+
316
+ const configuration = new Configuration();
317
+ const apiInstance = new WordPressInstallationsApi(configuration);
318
+
319
+ let username: string; // (default to undefined)
320
+ let software: string; //WordPress installation (software) identifier (default to undefined)
321
+
322
+ const { status, data } = await apiInstance.listAvailableWordPressCoreUpdatesV1(
323
+ username,
324
+ software
325
+ );
326
+ ```
327
+
328
+ ### Parameters
329
+
330
+ |Name | Type | Description | Notes|
331
+ |------------- | ------------- | ------------- | -------------|
332
+ | **username** | [**string**] | | defaults to undefined|
333
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
334
+
335
+
336
+ ### Return type
337
+
338
+ **Array<WordPressV1InstallationsUpdateResource>**
339
+
340
+ ### Authorization
341
+
342
+ [apiToken](../README.md#apiToken)
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: Not defined
347
+ - **Accept**: application/json
348
+
349
+
350
+ ### HTTP response details
351
+ | Status code | Description | Response headers |
352
+ |-------------|-------------|------------------|
353
+ |**200** | Success response | - |
354
+ |**401** | Unauthenticated response | - |
355
+ |**500** | Error response | - |
356
+
357
+ [[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)
358
+
68
359
  # **listWordPressInstallationsV1**
69
360
  > Array<WordPressV1InstallationsWordPressInstallationResource> listWordPressInstallationsV1()
70
361
 
@@ -124,3 +415,120 @@ const { status, data } = await apiInstance.listWordPressInstallationsV1(
124
415
 
125
416
  [[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)
126
417
 
418
+ # **showWordPressCoreVersionV1**
419
+ > WordPressV1InstallationsVersionResource showWordPressCoreVersionV1()
420
+
421
+ Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
422
+
423
+ ### Example
424
+
425
+ ```typescript
426
+ import {
427
+ WordPressInstallationsApi,
428
+ Configuration
429
+ } from 'hostinger-api-sdk';
430
+
431
+ const configuration = new Configuration();
432
+ const apiInstance = new WordPressInstallationsApi(configuration);
433
+
434
+ let username: string; // (default to undefined)
435
+ let software: string; //WordPress installation (software) identifier (default to undefined)
436
+
437
+ const { status, data } = await apiInstance.showWordPressCoreVersionV1(
438
+ username,
439
+ software
440
+ );
441
+ ```
442
+
443
+ ### Parameters
444
+
445
+ |Name | Type | Description | Notes|
446
+ |------------- | ------------- | ------------- | -------------|
447
+ | **username** | [**string**] | | defaults to undefined|
448
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
449
+
450
+
451
+ ### Return type
452
+
453
+ **WordPressV1InstallationsVersionResource**
454
+
455
+ ### Authorization
456
+
457
+ [apiToken](../README.md#apiToken)
458
+
459
+ ### HTTP request headers
460
+
461
+ - **Content-Type**: Not defined
462
+ - **Accept**: application/json
463
+
464
+
465
+ ### HTTP response details
466
+ | Status code | Description | Response headers |
467
+ |-------------|-------------|------------------|
468
+ |**200** | Success response | - |
469
+ |**401** | Unauthenticated response | - |
470
+ |**500** | Error response | - |
471
+
472
+ [[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)
473
+
474
+ # **updateWordPressCoreV1**
475
+ > CommonSuccessEmptyResource updateWordPressCoreV1(wordPressV1InstallationsUpdateInstallationRequest)
476
+
477
+ Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
478
+
479
+ ### Example
480
+
481
+ ```typescript
482
+ import {
483
+ WordPressInstallationsApi,
484
+ Configuration,
485
+ WordPressV1InstallationsUpdateInstallationRequest
486
+ } from 'hostinger-api-sdk';
487
+
488
+ const configuration = new Configuration();
489
+ const apiInstance = new WordPressInstallationsApi(configuration);
490
+
491
+ let username: string; // (default to undefined)
492
+ let software: string; //WordPress installation (software) identifier (default to undefined)
493
+ let wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest; //
494
+
495
+ const { status, data } = await apiInstance.updateWordPressCoreV1(
496
+ username,
497
+ software,
498
+ wordPressV1InstallationsUpdateInstallationRequest
499
+ );
500
+ ```
501
+
502
+ ### Parameters
503
+
504
+ |Name | Type | Description | Notes|
505
+ |------------- | ------------- | ------------- | -------------|
506
+ | **wordPressV1InstallationsUpdateInstallationRequest** | **WordPressV1InstallationsUpdateInstallationRequest**| | |
507
+ | **username** | [**string**] | | defaults to undefined|
508
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
509
+
510
+
511
+ ### Return type
512
+
513
+ **CommonSuccessEmptyResource**
514
+
515
+ ### Authorization
516
+
517
+ [apiToken](../README.md#apiToken)
518
+
519
+ ### HTTP request headers
520
+
521
+ - **Content-Type**: application/json
522
+ - **Accept**: application/json
523
+
524
+
525
+ ### HTTP response details
526
+ | Status code | Description | Response headers |
527
+ |-------------|-------------|------------------|
528
+ |**200** | Success empty response | - |
529
+ |**422** | Validation error response | - |
530
+ |**401** | Unauthenticated response | - |
531
+ |**500** | Error response | - |
532
+
533
+ [[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)
534
+
@@ -0,0 +1,121 @@
1
+ # WordPressLiteSpeedCacheApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**purgeLiteSpeedCacheV1**](#purgelitespeedcachev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge | Purge LiteSpeed Cache|
8
+ |[**showLiteSpeedCacheStatusV1**](#showlitespeedcachestatusv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status | Show LiteSpeed Cache status|
9
+
10
+ # **purgeLiteSpeedCacheV1**
11
+ > CommonSuccessEmptyResource purgeLiteSpeedCacheV1()
12
+
13
+ Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ WordPressLiteSpeedCacheApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new WordPressLiteSpeedCacheApi(configuration);
25
+
26
+ let username: string; // (default to undefined)
27
+ let software: string; //WordPress installation (software) identifier (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.purgeLiteSpeedCacheV1(
30
+ username,
31
+ software
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **username** | [**string**] | | defaults to undefined|
40
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **CommonSuccessEmptyResource**
46
+
47
+ ### Authorization
48
+
49
+ [apiToken](../README.md#apiToken)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Success empty response | - |
61
+ |**401** | Unauthenticated response | - |
62
+ |**500** | Error response | - |
63
+
64
+ [[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)
65
+
66
+ # **showLiteSpeedCacheStatusV1**
67
+ > WordPressV1LitespeedLitespeedCacheStatusResource showLiteSpeedCacheStatusV1()
68
+
69
+ Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ WordPressLiteSpeedCacheApi,
76
+ Configuration
77
+ } from 'hostinger-api-sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new WordPressLiteSpeedCacheApi(configuration);
81
+
82
+ let username: string; // (default to undefined)
83
+ let software: string; //WordPress installation (software) identifier (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.showLiteSpeedCacheStatusV1(
86
+ username,
87
+ software
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **username** | [**string**] | | defaults to undefined|
96
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **WordPressV1LitespeedLitespeedCacheStatusResource**
102
+
103
+ ### Authorization
104
+
105
+ [apiToken](../README.md#apiToken)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | Success response | - |
117
+ |**401** | Unauthenticated response | - |
118
+ |**500** | Error response | - |
119
+
120
+ [[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)
121
+
@@ -0,0 +1,64 @@
1
+ # WordPressLoginApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createLoginLinksV1**](#createloginlinksv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/login/links | Create login links|
8
+
9
+ # **createLoginLinksV1**
10
+ > WordPressV1LoginLoginLinksResource createLoginLinksV1()
11
+
12
+ Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ WordPressLoginApi,
19
+ Configuration
20
+ } from 'hostinger-api-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new WordPressLoginApi(configuration);
24
+
25
+ let username: string; // (default to undefined)
26
+ let software: string; //WordPress installation (software) identifier (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.createLoginLinksV1(
29
+ username,
30
+ software
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **username** | [**string**] | | defaults to undefined|
39
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **WordPressV1LoginLoginLinksResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success response | - |
60
+ |**401** | Unauthenticated response | - |
61
+ |**500** | Error response | - |
62
+
63
+ [[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)
64
+