hostinger-api-sdk 1.5.1 → 1.22.1
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 +29 -1
- package/README.md +2 -2
- package/api.ts +19008 -8147
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13441 -6234
- package/dist/api.js +10911 -4155
- 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 +13441 -6234
- package/dist/esm/api.js +10589 -3919
- 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/AgencyHostingCacheApi.md +61 -0
- package/docs/AgencyHostingCronJobsApi.md +183 -0
- package/docs/AgencyHostingDatabasesApi.md +305 -0
- package/docs/AgencyHostingDatacentersApi.md +61 -0
- package/docs/AgencyHostingDomainsApi.md +245 -0
- package/docs/AgencyHostingFilesApi.md +66 -0
- package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
- package/docs/AgencyHostingOrdersApi.md +64 -0
- package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
- package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
- package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
- package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
- package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
- package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
- package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
- package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
- package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
- package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
- package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
- package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
- package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
- package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
- package/docs/AgencyHostingWebsitesApi.md +228 -0
- package/docs/AgencyHostingWordPressApi.md +174 -0
- package/docs/BillingCatalogApi.md +2 -2
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingSubscriptionsApi.md +59 -0
- package/docs/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
- package/docs/BillingV1SubscriptionRenewalRenewRequest.md +22 -0
- package/docs/DomainsForwardingApi.md +59 -0
- package/docs/DomainsPortfolioApi.md +108 -0
- package/docs/DomainsTransferApi.md +108 -0
- package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
- package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
- package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
- package/docs/DomainsV1TransferTransferResource.md +26 -0
- package/docs/HostingDatabasesApi.md +63 -63
- package/docs/HostingNodeJSApi.md +122 -0
- package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
- package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
- package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
- package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +59 -0
- package/docs/MailAPITokensApi.md +185 -0
- package/docs/MailAliasesApi.md +186 -0
- package/docs/MailAutorepliesApi.md +246 -0
- package/docs/MailCatchallsApi.md +239 -0
- package/docs/MailForwardersApi.md +304 -0
- package/docs/MailListAPITokensV1200Response.md +22 -0
- package/docs/MailListAccessLogsV1200Response.md +22 -0
- package/docs/MailListActionLogsV1200Response.md +22 -0
- package/docs/MailListAliasesV1200Response.md +22 -0
- package/docs/MailListAutorepliesV1200Response.md +22 -0
- package/docs/MailListCatchAllsV1200Response.md +22 -0
- package/docs/MailListForwardersV1200Response.md +22 -0
- package/docs/MailListInboundLogsV1200Response.md +22 -0
- package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
- package/docs/MailListMailboxesV1200Response.md +22 -0
- package/docs/MailListOrdersV1200Response.md +22 -0
- package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
- package/docs/MailListWebhooksV1200Response.md +22 -0
- package/docs/MailLogsApi.md +410 -0
- package/docs/MailMailboxesApi.md +253 -0
- package/docs/MailOrdersApi.md +132 -0
- package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
- package/docs/MailV1AliasesAliasResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
- package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
- package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
- package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
- package/docs/MailV1CatchallsCatchallResource.md +32 -0
- package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
- package/docs/MailV1ForwardersForwarderResource.md +34 -0
- package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
- package/docs/MailV1LogsActionActionLogResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
- package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
- package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
- package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
- package/docs/MailV1MailboxesMailboxResource.md +38 -0
- package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
- package/docs/MailV1OrdersOrderDomainResource.md +22 -0
- package/docs/MailV1OrdersOrderPlanResource.md +22 -0
- package/docs/MailV1OrdersOrderResource.md +36 -0
- package/docs/MailV1OrdersPlanDomainResource.md +30 -0
- package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
- package/docs/MailV1OrdersPlanResource.md +26 -0
- package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
- package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
- package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
- package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
- package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
- package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
- package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
- package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
- package/docs/MailV1WebhooksWebhookResource.md +36 -0
- package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
- package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
- package/docs/MailWebhooksApi.md +488 -0
- package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
- package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
7
7
|
|[**createDomainForwardingV1**](#createdomainforwardingv1) | **POST** /api/domains/v1/forwarding | Create domain forwarding|
|
|
8
8
|
|[**deleteDomainForwardingV1**](#deletedomainforwardingv1) | **DELETE** /api/domains/v1/forwarding/{domain} | Delete domain forwarding|
|
|
9
9
|
|[**getDomainForwardingV1**](#getdomainforwardingv1) | **GET** /api/domains/v1/forwarding/{domain} | Get domain forwarding|
|
|
10
|
+
|[**updateDomainForwardingV1**](#updatedomainforwardingv1) | **PUT** /api/domains/v1/forwarding/{domain} | Update domain forwarding|
|
|
10
11
|
|
|
11
12
|
# **createDomainForwardingV1**
|
|
12
13
|
> DomainsV1ForwardingForwardingResource createDomainForwardingV1(domainsV1ForwardingStoreRequest)
|
|
@@ -169,3 +170,61 @@ const { status, data } = await apiInstance.getDomainForwardingV1(
|
|
|
169
170
|
|
|
170
171
|
[[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)
|
|
171
172
|
|
|
173
|
+
# **updateDomainForwardingV1**
|
|
174
|
+
> DomainsV1ForwardingForwardingResource updateDomainForwardingV1(domainsV1ForwardingUpdateRequest)
|
|
175
|
+
|
|
176
|
+
Update domain forwarding configuration. Use this endpoint to modify existing redirect configuration for domains.
|
|
177
|
+
|
|
178
|
+
### Example
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import {
|
|
182
|
+
DomainsForwardingApi,
|
|
183
|
+
Configuration,
|
|
184
|
+
DomainsV1ForwardingUpdateRequest
|
|
185
|
+
} from 'hostinger-api-sdk';
|
|
186
|
+
|
|
187
|
+
const configuration = new Configuration();
|
|
188
|
+
const apiInstance = new DomainsForwardingApi(configuration);
|
|
189
|
+
|
|
190
|
+
let domain: string; //Domain name (default to undefined)
|
|
191
|
+
let domainsV1ForwardingUpdateRequest: DomainsV1ForwardingUpdateRequest; //
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.updateDomainForwardingV1(
|
|
194
|
+
domain,
|
|
195
|
+
domainsV1ForwardingUpdateRequest
|
|
196
|
+
);
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Parameters
|
|
200
|
+
|
|
201
|
+
|Name | Type | Description | Notes|
|
|
202
|
+
|------------- | ------------- | ------------- | -------------|
|
|
203
|
+
| **domainsV1ForwardingUpdateRequest** | **DomainsV1ForwardingUpdateRequest**| | |
|
|
204
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
### Return type
|
|
208
|
+
|
|
209
|
+
**DomainsV1ForwardingForwardingResource**
|
|
210
|
+
|
|
211
|
+
### Authorization
|
|
212
|
+
|
|
213
|
+
[apiToken](../README.md#apiToken)
|
|
214
|
+
|
|
215
|
+
### HTTP request headers
|
|
216
|
+
|
|
217
|
+
- **Content-Type**: application/json
|
|
218
|
+
- **Accept**: application/json
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### HTTP response details
|
|
222
|
+
| Status code | Description | Response headers |
|
|
223
|
+
|-------------|-------------|------------------|
|
|
224
|
+
|**200** | Success response | - |
|
|
225
|
+
|**422** | Validation error response | - |
|
|
226
|
+
|**401** | Unauthenticated response | - |
|
|
227
|
+
|**500** | Error response | - |
|
|
228
|
+
|
|
229
|
+
[[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)
|
|
230
|
+
|
|
@@ -8,8 +8,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
8
8
|
|[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
|
|
9
9
|
|[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
|
|
10
10
|
|[**enablePrivacyProtectionV1**](#enableprivacyprotectionv1) | **PUT** /api/domains/v1/portfolio/{domain}/privacy-protection | Enable privacy protection|
|
|
11
|
+
|[**getDomainAuthorizationCodeV1**](#getdomainauthorizationcodev1) | **GET** /api/domains/v1/portfolio/{domain}/auth-code | Get domain authorization code|
|
|
11
12
|
|[**getDomainDetailsV1**](#getdomaindetailsv1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain details|
|
|
12
13
|
|[**getDomainListV1**](#getdomainlistv1) | **GET** /api/domains/v1/portfolio | Get domain list|
|
|
14
|
+
|[**getDomainRenewalInformationV1**](#getdomainrenewalinformationv1) | **GET** /api/domains/v1/portfolio/{domain}/renewal | Get domain renewal information|
|
|
13
15
|
|[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
|
|
14
16
|
|[**updateDomainNameserversV1**](#updatedomainnameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers|
|
|
15
17
|
|
|
@@ -225,6 +227,59 @@ const { status, data } = await apiInstance.enablePrivacyProtectionV1(
|
|
|
225
227
|
|
|
226
228
|
[[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)
|
|
227
229
|
|
|
230
|
+
# **getDomainAuthorizationCodeV1**
|
|
231
|
+
> DomainsV1PortfolioAuthCodeAuthCodeResource getDomainAuthorizationCodeV1()
|
|
232
|
+
|
|
233
|
+
Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
|
|
234
|
+
|
|
235
|
+
### Example
|
|
236
|
+
|
|
237
|
+
```typescript
|
|
238
|
+
import {
|
|
239
|
+
DomainsPortfolioApi,
|
|
240
|
+
Configuration
|
|
241
|
+
} from 'hostinger-api-sdk';
|
|
242
|
+
|
|
243
|
+
const configuration = new Configuration();
|
|
244
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
245
|
+
|
|
246
|
+
let domain: string; //Domain name (default to undefined)
|
|
247
|
+
|
|
248
|
+
const { status, data } = await apiInstance.getDomainAuthorizationCodeV1(
|
|
249
|
+
domain
|
|
250
|
+
);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Parameters
|
|
254
|
+
|
|
255
|
+
|Name | Type | Description | Notes|
|
|
256
|
+
|------------- | ------------- | ------------- | -------------|
|
|
257
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### Return type
|
|
261
|
+
|
|
262
|
+
**DomainsV1PortfolioAuthCodeAuthCodeResource**
|
|
263
|
+
|
|
264
|
+
### Authorization
|
|
265
|
+
|
|
266
|
+
[apiToken](../README.md#apiToken)
|
|
267
|
+
|
|
268
|
+
### HTTP request headers
|
|
269
|
+
|
|
270
|
+
- **Content-Type**: Not defined
|
|
271
|
+
- **Accept**: application/json
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### HTTP response details
|
|
275
|
+
| Status code | Description | Response headers |
|
|
276
|
+
|-------------|-------------|------------------|
|
|
277
|
+
|**200** | Success response | - |
|
|
278
|
+
|**401** | Unauthenticated response | - |
|
|
279
|
+
|**500** | Error response | - |
|
|
280
|
+
|
|
281
|
+
[[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)
|
|
282
|
+
|
|
228
283
|
# **getDomainDetailsV1**
|
|
229
284
|
> DomainsV1DomainDomainExtendedResource getDomainDetailsV1()
|
|
230
285
|
|
|
@@ -315,6 +370,59 @@ This endpoint does not have any parameters.
|
|
|
315
370
|
- **Accept**: application/json
|
|
316
371
|
|
|
317
372
|
|
|
373
|
+
### HTTP response details
|
|
374
|
+
| Status code | Description | Response headers |
|
|
375
|
+
|-------------|-------------|------------------|
|
|
376
|
+
|**200** | Success response | - |
|
|
377
|
+
|**401** | Unauthenticated response | - |
|
|
378
|
+
|**500** | Error response | - |
|
|
379
|
+
|
|
380
|
+
[[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)
|
|
381
|
+
|
|
382
|
+
# **getDomainRenewalInformationV1**
|
|
383
|
+
> DomainsV1PortfolioRenewalRenewalInformationResource getDomainRenewalInformationV1()
|
|
384
|
+
|
|
385
|
+
Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
|
|
386
|
+
|
|
387
|
+
### Example
|
|
388
|
+
|
|
389
|
+
```typescript
|
|
390
|
+
import {
|
|
391
|
+
DomainsPortfolioApi,
|
|
392
|
+
Configuration
|
|
393
|
+
} from 'hostinger-api-sdk';
|
|
394
|
+
|
|
395
|
+
const configuration = new Configuration();
|
|
396
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
397
|
+
|
|
398
|
+
let domain: string; //Domain name (default to undefined)
|
|
399
|
+
|
|
400
|
+
const { status, data } = await apiInstance.getDomainRenewalInformationV1(
|
|
401
|
+
domain
|
|
402
|
+
);
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
### Parameters
|
|
406
|
+
|
|
407
|
+
|Name | Type | Description | Notes|
|
|
408
|
+
|------------- | ------------- | ------------- | -------------|
|
|
409
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
### Return type
|
|
413
|
+
|
|
414
|
+
**DomainsV1PortfolioRenewalRenewalInformationResource**
|
|
415
|
+
|
|
416
|
+
### Authorization
|
|
417
|
+
|
|
418
|
+
[apiToken](../README.md#apiToken)
|
|
419
|
+
|
|
420
|
+
### HTTP request headers
|
|
421
|
+
|
|
422
|
+
- **Content-Type**: Not defined
|
|
423
|
+
- **Accept**: application/json
|
|
424
|
+
|
|
425
|
+
|
|
318
426
|
### HTTP response details
|
|
319
427
|
| Status code | Description | Response headers |
|
|
320
428
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# DomainsTransferApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
|
|
8
|
+
|[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
|
|
9
|
+
|
|
10
|
+
# **getTransferListV1**
|
|
11
|
+
> Array<DomainsV1TransferTransferResource> getTransferListV1()
|
|
12
|
+
|
|
13
|
+
Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
DomainsTransferApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new DomainsTransferApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getTransferListV1();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**Array<DomainsV1TransferTransferResource>**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
[apiToken](../README.md#apiToken)
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: application/json
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | Success response | - |
|
|
51
|
+
|**401** | Unauthenticated response | - |
|
|
52
|
+
|**500** | Error response | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
56
|
+
# **getTransferV1**
|
|
57
|
+
> DomainsV1TransferTransferResource getTransferV1()
|
|
58
|
+
|
|
59
|
+
Retrieve the transfer for a specified domain. Use this endpoint to track an incoming or outgoing registrar transfer and its status.
|
|
60
|
+
|
|
61
|
+
### Example
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import {
|
|
65
|
+
DomainsTransferApi,
|
|
66
|
+
Configuration
|
|
67
|
+
} from 'hostinger-api-sdk';
|
|
68
|
+
|
|
69
|
+
const configuration = new Configuration();
|
|
70
|
+
const apiInstance = new DomainsTransferApi(configuration);
|
|
71
|
+
|
|
72
|
+
let domain: string; //Domain name (default to undefined)
|
|
73
|
+
|
|
74
|
+
const { status, data } = await apiInstance.getTransferV1(
|
|
75
|
+
domain
|
|
76
|
+
);
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Parameters
|
|
80
|
+
|
|
81
|
+
|Name | Type | Description | Notes|
|
|
82
|
+
|------------- | ------------- | ------------- | -------------|
|
|
83
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
**DomainsV1TransferTransferResource**
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[apiToken](../README.md#apiToken)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### HTTP response details
|
|
101
|
+
| Status code | Description | Response headers |
|
|
102
|
+
|-------------|-------------|------------------|
|
|
103
|
+
|**200** | Success response | - |
|
|
104
|
+
|**401** | Unauthenticated response | - |
|
|
105
|
+
|**500** | Error response | - |
|
|
106
|
+
|
|
107
|
+
[[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)
|
|
108
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# DomainsV1ForwardingUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**redirect_type** | **string** | Redirect type | [default to undefined]
|
|
9
|
+
**redirect_url** | **string** | URL to forward domain to | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainsV1ForwardingUpdateRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainsV1ForwardingUpdateRequest = {
|
|
17
|
+
redirect_type,
|
|
18
|
+
redirect_url,
|
|
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
|
+
# DomainsV1PortfolioAuthCodeAuthCodeResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**auth_code** | **string** | Domain authorization code used to transfer the domain to another registrar. | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainsV1PortfolioAuthCodeAuthCodeResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainsV1PortfolioAuthCodeAuthCodeResource = {
|
|
16
|
+
auth_code,
|
|
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
|
+
# DomainsV1PortfolioRenewalRenewalInformationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Domain status | [optional] [default to undefined]
|
|
10
|
+
**expires_at** | **string** | Domain expiration date | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1PortfolioRenewalRenewalInformationResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1PortfolioRenewalRenewalInformationResource = {
|
|
18
|
+
domain,
|
|
19
|
+
status,
|
|
20
|
+
expires_at,
|
|
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,26 @@
|
|
|
1
|
+
# DomainsV1TransferTransferResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Transfer status | [optional] [default to undefined]
|
|
10
|
+
**initiated_at** | **string** | When the transfer was initiated | [optional] [default to undefined]
|
|
11
|
+
**completed_at** | **string** | When the transfer completed | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1TransferTransferResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1TransferTransferResource = {
|
|
19
|
+
domain,
|
|
20
|
+
status,
|
|
21
|
+
initiated_at,
|
|
22
|
+
completed_at,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|