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,30 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreCreationResourceStore
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Store ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Store name | [optional] [default to undefined]
|
|
10
|
+
**company_name** | **string** | Company name | [optional] [default to undefined]
|
|
11
|
+
**h_panel_id** | **string** | Identifier of the hPanel account that owns the store. | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | Creation date | [optional] [default to undefined]
|
|
13
|
+
**default_currency_code** | **string** | Default currency code (ISO 4217), in lowercase. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EcommerceV1StoreStoreCreationResourceStore } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EcommerceV1StoreStoreCreationResourceStore = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
company_name,
|
|
24
|
+
h_panel_id,
|
|
25
|
+
created_at,
|
|
26
|
+
default_currency_code,
|
|
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,22 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreDeleteResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | The ID of the deleted store. | [optional] [default to undefined]
|
|
9
|
+
**is_deleted** | **boolean** | Always true when the store was soft-deleted. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1StoreStoreDeleteResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1StoreStoreDeleteResource = {
|
|
17
|
+
id,
|
|
18
|
+
is_deleted,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,30 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**country_code** | **string** | ISO 3166-1 alpha-2 country code. | [optional] [default to undefined]
|
|
10
|
+
**company_email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**company_name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**language** | **string** | ISO 639-1 language code. | [optional] [default to undefined]
|
|
13
|
+
**sales_channel** | [**EcommerceV1StoreStoreRequestSalesChannel**](EcommerceV1StoreStoreRequestSalesChannel.md) | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EcommerceV1StoreStoreRequest } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EcommerceV1StoreStoreRequest = {
|
|
21
|
+
name,
|
|
22
|
+
country_code,
|
|
23
|
+
company_email,
|
|
24
|
+
company_name,
|
|
25
|
+
language,
|
|
26
|
+
sales_channel,
|
|
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,22 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreRequestSalesChannel
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | Sales channel type. Only \"custom\" channels can be created via the API. | [optional] [default to undefined]
|
|
9
|
+
**external_id** | **string** | External identifier for the sales channel. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EcommerceV1StoreStoreRequestSalesChannel } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EcommerceV1StoreStoreRequestSalesChannel = {
|
|
17
|
+
type,
|
|
18
|
+
external_id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,30 @@
|
|
|
1
|
+
# EcommerceV1StoreStoreResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Store ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Store name | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | Creation date | [optional] [default to undefined]
|
|
11
|
+
**updated_at** | **string** | Last update date | [optional] [default to undefined]
|
|
12
|
+
**version** | **string** | Store platform version identifier (e.g. \"v2_standalone\"). | [optional] [default to undefined]
|
|
13
|
+
**company_name** | **string** | Company name | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EcommerceV1StoreStoreResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EcommerceV1StoreStoreResource = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
created_at,
|
|
24
|
+
updated_at,
|
|
25
|
+
version,
|
|
26
|
+
company_name,
|
|
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
|
+
# HorizonsV1WebsitesCreateWebsiteRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | [**Array<HorizonsV1WebsitesCreateWebsiteRequestMessageInner>**](HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { HorizonsV1WebsitesCreateWebsiteRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: HorizonsV1WebsitesCreateWebsiteRequest = {
|
|
16
|
+
message,
|
|
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,22 @@
|
|
|
1
|
+
# HorizonsV1WebsitesCreateWebsiteRequestMessageInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**text** | **string** | Detailed project specification. Include purpose, key features, user flows, data models, and design preferences. The specification should be detailed and comprehensive, covering all aspects of the project. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HorizonsV1WebsitesCreateWebsiteRequestMessageInner } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HorizonsV1WebsitesCreateWebsiteRequestMessageInner = {
|
|
17
|
+
type,
|
|
18
|
+
text,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# HorizonsV1WebsitesCreatedWebsiteResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**website_url** | **string** | The website URL for the user to access their website in Hostinger Horizons interface | [default to undefined]
|
|
9
|
+
**website_id** | **string** | The website ID | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HorizonsV1WebsitesCreatedWebsiteResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HorizonsV1WebsitesCreatedWebsiteResource = {
|
|
17
|
+
website_url,
|
|
18
|
+
website_id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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
|
+
# HorizonsV1WebsitesWebsiteUrlResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**website_url** | **string** | The website URL for the user to access their website in Hostinger Horizons interface | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { HorizonsV1WebsitesWebsiteUrlResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: HorizonsV1WebsitesWebsiteUrlResource = {
|
|
16
|
+
website_url,
|
|
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,117 @@
|
|
|
1
|
+
# HorizonsWebsitesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createWebsiteV1**](#createwebsitev1) | **POST** /api/horizons/v1/websites | Create website|
|
|
8
|
+
|[**getWebsiteV1**](#getwebsitev1) | **GET** /api/horizons/v1/websites/{websiteId} | Get website|
|
|
9
|
+
|
|
10
|
+
# **createWebsiteV1**
|
|
11
|
+
> HorizonsV1WebsitesCreatedWebsiteResource createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest)
|
|
12
|
+
|
|
13
|
+
Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
HorizonsWebsitesApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
HorizonsV1WebsitesCreateWebsiteRequest
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new HorizonsWebsitesApi(configuration);
|
|
26
|
+
|
|
27
|
+
let horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.createWebsiteV1(
|
|
30
|
+
horizonsV1WebsitesCreateWebsiteRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **horizonsV1WebsitesCreateWebsiteRequest** | **HorizonsV1WebsitesCreateWebsiteRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**HorizonsV1WebsitesCreatedWebsiteResource**
|
|
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 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
|
+
# **getWebsiteV1**
|
|
66
|
+
> HorizonsV1WebsitesWebsiteUrlResource getWebsiteV1()
|
|
67
|
+
|
|
68
|
+
Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
HorizonsWebsitesApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from 'hostinger-api-sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new HorizonsWebsitesApi(configuration);
|
|
80
|
+
|
|
81
|
+
let websiteId: string; //The website ID (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getWebsiteV1(
|
|
84
|
+
websiteId
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **websiteId** | [**string**] | The website ID | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**HorizonsV1WebsitesWebsiteUrlResource**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[apiToken](../README.md#apiToken)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Success response | - |
|
|
113
|
+
|**401** | Unauthenticated response | - |
|
|
114
|
+
|**500** | Error response | - |
|
|
115
|
+
|
|
116
|
+
[[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)
|
|
117
|
+
|