hostinger-api-sdk 0.0.17 → 0.0.20
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/.github/workflows/build-release.yaml +28 -11
- package/README.md +2 -2
- package/api.ts +8387 -2618
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +5666 -1808
- package/dist/api.js +4008 -376
- 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 +5666 -1808
- package/dist/esm/api.js +3939 -365
- 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/BillingSubscriptionsApi.md +0 -59
- package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
- package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
- package/docs/DomainsPortfolioApi.md +1 -1
- package/docs/EcommerceGetStoresV1200Response.md +22 -0
- package/docs/EcommercePaymentsApi.md +66 -0
- package/docs/EcommerceProductsApi.md +125 -0
- package/docs/EcommerceShippingApi.md +66 -0
- package/docs/EcommerceStoresApi.md +171 -0
- package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
- package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
- package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
- package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
- package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
- package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
- package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
- package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
- package/docs/EcommerceV1ShippingShippingResource.md +22 -0
- package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
- package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
- package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
- package/docs/EcommerceV1StoreStoreRequest.md +30 -0
- package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
- package/docs/EcommerceV1StoreStoreResource.md +30 -0
- package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
- package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
- package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
- package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
- package/docs/HorizonsWebsitesApi.md +117 -0
- package/docs/HostingDatabasesApi.md +368 -0
- package/docs/HostingDatacentersApi.md +61 -0
- package/docs/HostingDomainsApi.md +468 -0
- package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
- package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
- package/docs/HostingListOrdersV1200Response.md +22 -0
- package/docs/HostingListWebsitesV1200Response.md +22 -0
- package/docs/HostingNodeJSApi.md +199 -0
- package/docs/HostingOrdersApi.md +70 -0
- package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
- package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
- package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
- package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
- package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
- package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
- package/docs/HostingV1DatacentersListRequest.md +20 -0
- package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
- package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
- package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
- package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
- package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
- package/docs/HostingV1DomainsSubdomainResource.md +28 -0
- package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
- package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
- package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
- package/docs/HostingV1NodeJsBuildResource.md +28 -0
- package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
- package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
- package/docs/HostingV1OrdersOrderResource.md +30 -0
- package/docs/HostingV1OrdersPlanResource.md +20 -0
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
- package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
- package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
- package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
- package/docs/HostingWebsitesApi.md +132 -0
- package/docs/HostingWordpressApi.md +126 -0
- package/docs/ReachContactsApi.md +63 -4
- package/docs/ReachListProfileSegmentContactsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +287 -0
- package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
- package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
- package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
- package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
- package/docs/ReachV1ContactsStoreRequest.md +2 -2
- package/docs/ReachV1ProfilesProfileResource.md +30 -0
- package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
- package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
- package/docs/VPSActionsApi.md +1 -1
- package/docs/VPSDockerManagerApi.md +7 -7
- package/docs/VPSFirewallApi.md +1 -1
- package/docs/VPSMalwareScannerApi.md +2 -2
- package/docs/VPSVirtualMachineApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingV1OrderStoreRequest.md +0 -24
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# HostingV1NodeJsBuildResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | Build UUID | [optional] [default to undefined]
|
|
9
|
+
**state** | **string** | Build state | [optional] [default to undefined]
|
|
10
|
+
**_options** | [**HostingV1NodeJsBuildOptionsResource**](HostingV1NodeJsBuildOptionsResource.md) | | [optional] [default to undefined]
|
|
11
|
+
**created_at** | **string** | Creation timestamp | [optional] [default to undefined]
|
|
12
|
+
**updated_at** | **string** | Last update timestamp | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { HostingV1NodeJsBuildResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: HostingV1NodeJsBuildResource = {
|
|
20
|
+
uuid,
|
|
21
|
+
state,
|
|
22
|
+
_options,
|
|
23
|
+
created_at,
|
|
24
|
+
updated_at,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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,34 @@
|
|
|
1
|
+
# HostingV1NodeJsCreateFromArchiveRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**archive** | **string** | Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB | [default to undefined]
|
|
9
|
+
**node_version** | **number** | Node.js version override (auto-detected from package.json if omitted) | [optional] [default to undefined]
|
|
10
|
+
**app_type** | **string** | Node.js application type override | [optional] [default to undefined]
|
|
11
|
+
**root_directory** | **string** | Application root directory override (where package.json is located) relative to public_html | [optional] [default to undefined]
|
|
12
|
+
**output_directory** | **string** | Build output directory override relative to the root directory | [optional] [default to undefined]
|
|
13
|
+
**build_script** | **string** | Build script override | [optional] [default to undefined]
|
|
14
|
+
**entry_file** | **string** | Main entry point file override | [optional] [default to undefined]
|
|
15
|
+
**package_manager** | **string** | Package manager override | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { HostingV1NodeJsCreateFromArchiveRequest } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: HostingV1NodeJsCreateFromArchiveRequest = {
|
|
23
|
+
archive,
|
|
24
|
+
node_version,
|
|
25
|
+
app_type,
|
|
26
|
+
root_directory,
|
|
27
|
+
output_directory,
|
|
28
|
+
build_script,
|
|
29
|
+
entry_file,
|
|
30
|
+
package_manager,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md}
RENAMED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# HostingV1NodeJsSourceOptionsResource
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**quantity** | **number** | | [default to undefined]
|
|
8
|
+
**archive_path** | **string** | Present if sourceType is \"archive\" | [optional] [default to undefined]
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
13
12
|
```typescript
|
|
14
|
-
import {
|
|
13
|
+
import { HostingV1NodeJsSourceOptionsResource } from 'hostinger-api-sdk';
|
|
15
14
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
18
|
-
quantity,
|
|
15
|
+
const instance: HostingV1NodeJsSourceOptionsResource = {
|
|
16
|
+
archive_path,
|
|
19
17
|
};
|
|
20
18
|
```
|
|
21
19
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# HostingV1OrdersOrderResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Order ID | [optional] [default to undefined]
|
|
9
|
+
**client_id** | **number** | Client ID | [optional] [default to undefined]
|
|
10
|
+
**subscription_id** | **string** | Subscription ID | [optional] [default to undefined]
|
|
11
|
+
**created_at** | **string** | Creation date | [optional] [default to undefined]
|
|
12
|
+
**plan** | [**HostingV1OrdersPlanResource**](HostingV1OrdersPlanResource.md) | | [optional] [default to undefined]
|
|
13
|
+
**status** | **string** | Order status | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { HostingV1OrdersOrderResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: HostingV1OrdersOrderResource = {
|
|
21
|
+
id,
|
|
22
|
+
client_id,
|
|
23
|
+
subscription_id,
|
|
24
|
+
created_at,
|
|
25
|
+
plan,
|
|
26
|
+
status,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,20 @@
|
|
|
1
|
+
# HostingV1OrdersPlanResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Plan name | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { HostingV1OrdersPlanResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: HostingV1OrdersPlanResource = {
|
|
16
|
+
name,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,24 @@
|
|
|
1
|
+
# HostingV1WebsitesCreateWebsiteRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name for the website. Cannot start with \"www.\" | [default to undefined]
|
|
9
|
+
**order_id** | **number** | ID of the associated order | [default to undefined]
|
|
10
|
+
**datacenter_code** | **string** | Datacenter code. This parameter is required when creating the first website on a new hosting plan. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { HostingV1WebsitesCreateWebsiteRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: HostingV1WebsitesCreateWebsiteRequest = {
|
|
18
|
+
domain,
|
|
19
|
+
order_id,
|
|
20
|
+
datacenter_code,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[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,36 @@
|
|
|
1
|
+
# HostingV1WebsitesWebsiteResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Website domain | [optional] [default to undefined]
|
|
9
|
+
**vhost_type** | **string** | Virtual host type | [optional] [default to undefined]
|
|
10
|
+
**is_enabled** | **boolean** | Whether website is enabled | [optional] [default to undefined]
|
|
11
|
+
**username** | **string** | Username | [optional] [default to undefined]
|
|
12
|
+
**client_id** | **number** | Client ID | [optional] [default to undefined]
|
|
13
|
+
**order_id** | **number** | Order ID | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | Creation date | [optional] [default to undefined]
|
|
15
|
+
**root_directory** | **string** | Root directory path | [optional] [default to undefined]
|
|
16
|
+
**parent_domain** | **string** | Parent domain | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { HostingV1WebsitesWebsiteResource } from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: HostingV1WebsitesWebsiteResource = {
|
|
24
|
+
domain,
|
|
25
|
+
vhost_type,
|
|
26
|
+
is_enabled,
|
|
27
|
+
username,
|
|
28
|
+
client_id,
|
|
29
|
+
order_id,
|
|
30
|
+
created_at,
|
|
31
|
+
root_directory,
|
|
32
|
+
parent_domain,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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,36 @@
|
|
|
1
|
+
# HostingV1WordpressInstallWordpressRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain of the existing website where WordPress will be installed | [default to undefined]
|
|
9
|
+
**site_title** | **string** | Title of the WordPress site | [default to undefined]
|
|
10
|
+
**language** | **string** | WordPress locale. Defaults to en_US when omitted. | [optional] [default to undefined]
|
|
11
|
+
**directory** | **string** | Relative directory to install WordPress into. Defaults to the website root when omitted. | [optional] [default to undefined]
|
|
12
|
+
**overwrite** | **boolean** | When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true. | [optional] [default to undefined]
|
|
13
|
+
**auto_updates** | **string** | WordPress core auto-update policy | [optional] [default to undefined]
|
|
14
|
+
**version** | **string** | WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected. | [optional] [default to undefined]
|
|
15
|
+
**credentials** | [**HostingV1WordpressInstallWordpressRequestCredentials**](HostingV1WordpressInstallWordpressRequestCredentials.md) | | [default to undefined]
|
|
16
|
+
**database** | [**HostingV1WordpressInstallWordpressRequestDatabase**](HostingV1WordpressInstallWordpressRequestDatabase.md) | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { HostingV1WordpressInstallWordpressRequest } from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: HostingV1WordpressInstallWordpressRequest = {
|
|
24
|
+
domain,
|
|
25
|
+
site_title,
|
|
26
|
+
language,
|
|
27
|
+
directory,
|
|
28
|
+
overwrite,
|
|
29
|
+
auto_updates,
|
|
30
|
+
version,
|
|
31
|
+
credentials,
|
|
32
|
+
database,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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,25 @@
|
|
|
1
|
+
# HostingV1WordpressInstallWordpressRequestCredentials
|
|
2
|
+
|
|
3
|
+
WordPress admin credentials
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**login** | **string** | WordPress admin username | [default to undefined]
|
|
11
|
+
**password** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { HostingV1WordpressInstallWordpressRequestCredentials } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: HostingV1WordpressInstallWordpressRequestCredentials = {
|
|
19
|
+
email,
|
|
20
|
+
login,
|
|
21
|
+
password,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,23 @@
|
|
|
1
|
+
# HostingV1WordpressInstallWordpressRequestDatabase
|
|
2
|
+
|
|
3
|
+
Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Database name (username prefix added if missing) | [optional] [default to undefined]
|
|
10
|
+
**password** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { HostingV1WordpressInstallWordpressRequestDatabase } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: HostingV1WordpressInstallWordpressRequestDatabase = {
|
|
18
|
+
name,
|
|
19
|
+
password,
|
|
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,42 @@
|
|
|
1
|
+
# HostingV1WordpressWordpressInstallationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | WordPress installation (software) id | [optional] [default to undefined]
|
|
9
|
+
**username** | **string** | Hosting account username | [optional] [default to undefined]
|
|
10
|
+
**domain** | **string** | Domain the installation belongs to | [optional] [default to undefined]
|
|
11
|
+
**site_title** | **string** | WordPress site title | [optional] [default to undefined]
|
|
12
|
+
**url** | **string** | WordPress site URL | [optional] [default to undefined]
|
|
13
|
+
**directory** | **string** | Installation directory | [optional] [default to undefined]
|
|
14
|
+
**language** | **string** | WordPress locale | [optional] [default to undefined]
|
|
15
|
+
**login** | **string** | WordPress admin username | [optional] [default to undefined]
|
|
16
|
+
**email** | **string** | WordPress admin email | [optional] [default to undefined]
|
|
17
|
+
**is_valid** | **boolean** | Whether the installation is considered valid | [optional] [default to undefined]
|
|
18
|
+
**validation_error** | **string** | Reason the installation is invalid, if any | [optional] [default to undefined]
|
|
19
|
+
**created_at** | **string** | Installation creation timestamp | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { HostingV1WordpressWordpressInstallationResource } from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const instance: HostingV1WordpressWordpressInstallationResource = {
|
|
27
|
+
id,
|
|
28
|
+
username,
|
|
29
|
+
domain,
|
|
30
|
+
site_title,
|
|
31
|
+
url,
|
|
32
|
+
directory,
|
|
33
|
+
language,
|
|
34
|
+
login,
|
|
35
|
+
email,
|
|
36
|
+
is_valid,
|
|
37
|
+
validation_error,
|
|
38
|
+
created_at,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[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,132 @@
|
|
|
1
|
+
# HostingWebsitesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createWebsiteV1**](#createwebsitev1) | **POST** /api/hosting/v1/websites | Create website|
|
|
8
|
+
|[**listWebsitesV1**](#listwebsitesv1) | **GET** /api/hosting/v1/websites | List websites|
|
|
9
|
+
|
|
10
|
+
# **createWebsiteV1**
|
|
11
|
+
> CommonSuccessEmptyResource createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest)
|
|
12
|
+
|
|
13
|
+
Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
HostingWebsitesApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
HostingV1WebsitesCreateWebsiteRequest
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new HostingWebsitesApi(configuration);
|
|
26
|
+
|
|
27
|
+
let hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.createWebsiteV1(
|
|
30
|
+
hostingV1WebsitesCreateWebsiteRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **hostingV1WebsitesCreateWebsiteRequest** | **HostingV1WebsitesCreateWebsiteRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**CommonSuccessEmptyResource**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[apiToken](../README.md#apiToken)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Success empty response | - |
|
|
59
|
+
|**422** | Validation error 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
|
+
|
|
65
|
+
# **listWebsitesV1**
|
|
66
|
+
> HostingListWebsitesV1200Response listWebsitesV1()
|
|
67
|
+
|
|
68
|
+
Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
HostingWebsitesApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from 'hostinger-api-sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new HostingWebsitesApi(configuration);
|
|
80
|
+
|
|
81
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
82
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
83
|
+
let username: string; //Filter by specific username (optional) (default to undefined)
|
|
84
|
+
let orderId: number; //Order ID (optional) (default to undefined)
|
|
85
|
+
let isEnabled: boolean; //Filter by enabled status (optional) (default to undefined)
|
|
86
|
+
let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.listWebsitesV1(
|
|
89
|
+
page,
|
|
90
|
+
perPage,
|
|
91
|
+
username,
|
|
92
|
+
orderId,
|
|
93
|
+
isEnabled,
|
|
94
|
+
domain
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
103
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
104
|
+
| **username** | [**string**] | Filter by specific username | (optional) defaults to undefined|
|
|
105
|
+
| **orderId** | [**number**] | Order ID | (optional) defaults to undefined|
|
|
106
|
+
| **isEnabled** | [**boolean**] | Filter by enabled status | (optional) defaults to undefined|
|
|
107
|
+
| **domain** | [**string**] | Filter by domain name (exact match) | (optional) defaults to undefined|
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Return type
|
|
111
|
+
|
|
112
|
+
**HostingListWebsitesV1200Response**
|
|
113
|
+
|
|
114
|
+
### Authorization
|
|
115
|
+
|
|
116
|
+
[apiToken](../README.md#apiToken)
|
|
117
|
+
|
|
118
|
+
### HTTP request headers
|
|
119
|
+
|
|
120
|
+
- **Content-Type**: Not defined
|
|
121
|
+
- **Accept**: application/json
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### HTTP response details
|
|
125
|
+
| Status code | Description | Response headers |
|
|
126
|
+
|-------------|-------------|------------------|
|
|
127
|
+
|**200** | Success response | - |
|
|
128
|
+
|**401** | Unauthenticated response | - |
|
|
129
|
+
|**500** | Error response | - |
|
|
130
|
+
|
|
131
|
+
[[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)
|
|
132
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# HostingWordpressApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**installWordPressV1**](#installwordpressv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations | Install WordPress|
|
|
8
|
+
|[**listWordPressInstallationsV1**](#listwordpressinstallationsv1) | **GET** /api/hosting/v1/wordpress/installations | List WordPress installations|
|
|
9
|
+
|
|
10
|
+
# **installWordPressV1**
|
|
11
|
+
> CommonSuccessEmptyResource installWordPressV1(hostingV1WordpressInstallWordpressRequest)
|
|
12
|
+
|
|
13
|
+
Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
HostingWordpressApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
HostingV1WordpressInstallWordpressRequest
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new HostingWordpressApi(configuration);
|
|
26
|
+
|
|
27
|
+
let username: string; // (default to undefined)
|
|
28
|
+
let hostingV1WordpressInstallWordpressRequest: HostingV1WordpressInstallWordpressRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.installWordPressV1(
|
|
31
|
+
username,
|
|
32
|
+
hostingV1WordpressInstallWordpressRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **hostingV1WordpressInstallWordpressRequest** | **HostingV1WordpressInstallWordpressRequest**| | |
|
|
41
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**CommonSuccessEmptyResource**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[apiToken](../README.md#apiToken)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Success empty response | - |
|
|
62
|
+
|**422** | Validation error response | - |
|
|
63
|
+
|**401** | Unauthenticated response | - |
|
|
64
|
+
|**500** | Error response | - |
|
|
65
|
+
|
|
66
|
+
[[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
|
+
# **listWordPressInstallationsV1**
|
|
69
|
+
> Array<HostingV1WordpressWordpressInstallationResource> listWordPressInstallationsV1()
|
|
70
|
+
|
|
71
|
+
List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
HostingWordpressApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from 'hostinger-api-sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new HostingWordpressApi(configuration);
|
|
83
|
+
|
|
84
|
+
let username: string; //Filter by specific username (optional) (default to undefined)
|
|
85
|
+
let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
|
|
86
|
+
let ownership: 'owned' | 'managed' | 'all'; //Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations. (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.listWordPressInstallationsV1(
|
|
89
|
+
username,
|
|
90
|
+
domain,
|
|
91
|
+
ownership
|
|
92
|
+
);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
|Name | Type | Description | Notes|
|
|
98
|
+
|------------- | ------------- | ------------- | -------------|
|
|
99
|
+
| **username** | [**string**] | Filter by specific username | (optional) defaults to undefined|
|
|
100
|
+
| **domain** | [**string**] | Filter by domain name (exact match) | (optional) defaults to undefined|
|
|
101
|
+
| **ownership** | [**'owned' | 'managed' | 'all'**]**Array<'owned' | 'managed' | 'all'>** | Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations. | (optional) defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**Array<HostingV1WordpressWordpressInstallationResource>**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[apiToken](../README.md#apiToken)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | Success response | - |
|
|
122
|
+
|**401** | Unauthenticated response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[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
|
+
|