hostinger-api-sdk 0.0.19 → 0.0.21
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 +1464 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +900 -23
- package/dist/api.js +956 -130
- 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 +900 -23
- package/dist/esm/api.js +926 -117
- 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/EcommercePaymentsApi.md +66 -0
- package/docs/EcommerceProductsApi.md +125 -0
- package/docs/EcommerceShippingApi.md +66 -0
- package/docs/EcommerceStoresApi.md +54 -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/EcommerceV1StoreStoreDeleteResource.md +22 -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/{ReachListSegmentContactsV1200Response.md → ReachListProfileSegmentContactsV1200Response.md} +3 -3
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +65 -2
- package/docs/ReachV1ProfilesDomainsDnsRecordStatus.md +24 -0
- package/docs/ReachV1ProfilesDomainsDnsRecordStatusActualInner.md +22 -0
- package/docs/ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md +24 -0
- package/docs/ReachV1ProfilesDomainsDnsStatusResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# EcommerceV1ShippingShippingResourceShippingOption
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Shipping option ID. | [optional] [default to undefined]
|
|
9
|
+
**amount** | **number** | Flat shipping rate in the smallest currency unit (e.g. cents). | [optional] [default to undefined]
|
|
10
|
+
**currency_code** | **string** | Currency code the rate is charged in (ISO 4217, lowercase). | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { EcommerceV1ShippingShippingResourceShippingOption } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: EcommerceV1ShippingShippingResourceShippingOption = {
|
|
18
|
+
id,
|
|
19
|
+
amount,
|
|
20
|
+
currency_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,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,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
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ReachListProfileSegmentContactsV1200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { ReachListProfileSegmentContactsV1200Response } from 'hostinger-api-sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: ReachListProfileSegmentContactsV1200Response = {
|
|
17
17
|
data,
|
|
18
18
|
meta,
|
|
19
19
|
};
|
package/docs/ReachProfilesApi.md
CHANGED
|
@@ -4,8 +4,62 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getProfileDomainDNSStatusV1**](#getprofiledomaindnsstatusv1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status|
|
|
7
8
|
|[**listProfilesV1**](#listprofilesv1) | **GET** /api/reach/v1/profiles | List Profiles|
|
|
8
9
|
|
|
10
|
+
# **getProfileDomainDNSStatusV1**
|
|
11
|
+
> ReachV1ProfilesDomainsDnsStatusResource getProfileDomainDNSStatusV1()
|
|
12
|
+
|
|
13
|
+
Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
ReachProfilesApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new ReachProfilesApi(configuration);
|
|
25
|
+
|
|
26
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getProfileDomainDNSStatusV1(
|
|
29
|
+
profileUuid
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**ReachV1ProfilesDomainsDnsStatusResource**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[apiToken](../README.md#apiToken)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Success response | - |
|
|
58
|
+
|**401** | Unauthenticated response | - |
|
|
59
|
+
|**500** | Error response | - |
|
|
60
|
+
|
|
61
|
+
[[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)
|
|
62
|
+
|
|
9
63
|
# **listProfilesV1**
|
|
10
64
|
> Array<ReachV1ProfilesProfileResource> listProfilesV1()
|
|
11
65
|
|
package/docs/ReachSegmentsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createANewContactSegmentV1**](#createanewcontactsegmentv1) | **POST** /api/reach/v1/segmentation/segments | Create a new contact segment|
|
|
8
8
|
|[**getSegmentDetailsV1**](#getsegmentdetailsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid} | Get segment details|
|
|
9
|
+
|[**listProfileSegmentContactsV1**](#listprofilesegmentcontactsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts | List profile segment contacts|
|
|
9
10
|
|[**listSegmentContactsV1**](#listsegmentcontactsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid}/contacts | List segment contacts|
|
|
10
11
|
|[**listSegmentsV1**](#listsegmentsv1) | **GET** /api/reach/v1/segmentation/segments | List segments|
|
|
11
12
|
|
|
@@ -108,6 +109,68 @@ const { status, data } = await apiInstance.getSegmentDetailsV1(
|
|
|
108
109
|
- **Accept**: application/json
|
|
109
110
|
|
|
110
111
|
|
|
112
|
+
### HTTP response details
|
|
113
|
+
| Status code | Description | Response headers |
|
|
114
|
+
|-------------|-------------|------------------|
|
|
115
|
+
|**200** | Success response | - |
|
|
116
|
+
|**401** | Unauthenticated response | - |
|
|
117
|
+
|**500** | Error response | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
|
121
|
+
# **listProfileSegmentContactsV1**
|
|
122
|
+
> ReachListProfileSegmentContactsV1200Response listProfileSegmentContactsV1()
|
|
123
|
+
|
|
124
|
+
Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
ReachSegmentsApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from 'hostinger-api-sdk';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new ReachSegmentsApi(configuration);
|
|
136
|
+
|
|
137
|
+
let profileUuid: string; //Profile uuid parameter (default to undefined)
|
|
138
|
+
let segmentUuid: string; //Segment uuid parameter (default to undefined)
|
|
139
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
140
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
141
|
+
|
|
142
|
+
const { status, data } = await apiInstance.listProfileSegmentContactsV1(
|
|
143
|
+
profileUuid,
|
|
144
|
+
segmentUuid,
|
|
145
|
+
page,
|
|
146
|
+
perPage
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
|
|
155
|
+
| **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
|
|
156
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
157
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Return type
|
|
161
|
+
|
|
162
|
+
**ReachListProfileSegmentContactsV1200Response**
|
|
163
|
+
|
|
164
|
+
### Authorization
|
|
165
|
+
|
|
166
|
+
[apiToken](../README.md#apiToken)
|
|
167
|
+
|
|
168
|
+
### HTTP request headers
|
|
169
|
+
|
|
170
|
+
- **Content-Type**: Not defined
|
|
171
|
+
- **Accept**: application/json
|
|
172
|
+
|
|
173
|
+
|
|
111
174
|
### HTTP response details
|
|
112
175
|
| Status code | Description | Response headers |
|
|
113
176
|
|-------------|-------------|------------------|
|
|
@@ -118,7 +181,7 @@ const { status, data } = await apiInstance.getSegmentDetailsV1(
|
|
|
118
181
|
[[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)
|
|
119
182
|
|
|
120
183
|
# **listSegmentContactsV1**
|
|
121
|
-
>
|
|
184
|
+
> ReachListProfileSegmentContactsV1200Response listSegmentContactsV1()
|
|
122
185
|
|
|
123
186
|
Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
124
187
|
|
|
@@ -155,7 +218,7 @@ const { status, data } = await apiInstance.listSegmentContactsV1(
|
|
|
155
218
|
|
|
156
219
|
### Return type
|
|
157
220
|
|
|
158
|
-
**
|
|
221
|
+
**ReachListProfileSegmentContactsV1200Response**
|
|
159
222
|
|
|
160
223
|
### Authorization
|
|
161
224
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ReachV1ProfilesDomainsDnsRecordStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**actual** | [**Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>**](ReachV1ProfilesDomainsDnsRecordStatusActualInner.md) | | [optional] [default to undefined]
|
|
9
|
+
**suggested** | [**Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>**](ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md) | | [optional] [default to undefined]
|
|
10
|
+
**is_valid** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ProfilesDomainsDnsRecordStatus } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ProfilesDomainsDnsRecordStatus = {
|
|
18
|
+
actual,
|
|
19
|
+
suggested,
|
|
20
|
+
is_valid,
|
|
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,22 @@
|
|
|
1
|
+
# ReachV1ProfilesDomainsDnsRecordStatusActualInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**value** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachV1ProfilesDomainsDnsRecordStatusActualInner } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachV1ProfilesDomainsDnsRecordStatusActualInner = {
|
|
17
|
+
type,
|
|
18
|
+
value,
|
|
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,24 @@
|
|
|
1
|
+
# ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**value** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner = {
|
|
18
|
+
name,
|
|
19
|
+
type,
|
|
20
|
+
value,
|
|
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,28 @@
|
|
|
1
|
+
# ReachV1ProfilesDomainsDnsStatusResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**mx** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
|
|
10
|
+
**spf** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
|
|
11
|
+
**dkim** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
|
|
12
|
+
**dmarc** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ReachV1ProfilesDomainsDnsStatusResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ReachV1ProfilesDomainsDnsStatusResource = {
|
|
20
|
+
domain,
|
|
21
|
+
mx,
|
|
22
|
+
spf,
|
|
23
|
+
dkim,
|
|
24
|
+
dmarc,
|
|
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)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.19.3
|
|
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
|