Skip to content

Commit 5c1a1ea

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 24d7f7c + e72224b commit 5c1a1ea

File tree

258 files changed

+991
-991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+991
-991
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hostinger API Python SDK
22

3-
[![PyPI version](https://badge.fury.io/py/hostinger-api.svg)](https://badge.fury.io/py/hostinger-api)
3+
[![PyPI version](https://badge.fury.io/py/hostinger_api.svg)](https://badge.fury.io/py/hostinger_api)
44

55
## About
66
This is a Python SDK for the [Hostinger API](https://developers.hostinger.com).
@@ -22,12 +22,12 @@ source venv/bin/activate
2222

2323
Install the package via [pip](https://pypi.org/project/pip/):
2424
```sh
25-
pip install hostinger-api
25+
pip install hostinger_api
2626
```
2727

2828
Then import the package:
2929
```python
30-
import hostinger-api
30+
import hostinger_api
3131
```
3232

3333
### Setuptools
@@ -41,7 +41,7 @@ python setup.py install --user
4141

4242
Then import the package:
4343
```python
44-
import hostinger-api
44+
import hostinger_api
4545
```
4646

4747
## Getting Started
@@ -50,21 +50,21 @@ Please follow the [installation procedure](#installation--usage) and then run th
5050

5151
```python
5252

53-
import hostinger-api
54-
from hostinger-api.rest import ApiException
53+
import hostinger_api
54+
from hostinger_api.rest import ApiException
5555
from pprint import pprint
5656

5757

5858
# Configure Bearer authorization: apiToken
59-
configuration = hostinger-api.Configuration(
59+
configuration = hostinger_api.Configuration(
6060
access_token = os.environ["BEARER_TOKEN"]
6161
)
6262

6363

6464
# Enter a context with an instance of the API client
65-
with hostinger-api.ApiClient(configuration) as api_client:
65+
with hostinger_api.ApiClient(configuration) as api_client:
6666
# Create an instance of the API class
67-
api_instance = hostinger-api.BillingCatalogApi(api_client)
67+
api_instance = hostinger_api.BillingCatalogApi(api_client)
6868

6969
try:
7070
# Get catalog item list

docs/BillingCatalogApi.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# hostinger-api.BillingCatalogApi
1+
# hostinger_api.BillingCatalogApi
22

33
All URIs are relative to *https://developers.hostinger.com*
44

@@ -21,21 +21,21 @@ Prices in catalog items is displayed as cents (without floating point), e.g: flo
2121
* Bearer Authentication (apiToken):
2222

2323
```python
24-
import hostinger-api
25-
from hostinger-api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
26-
from hostinger-api.rest import ApiException
24+
import hostinger_api
25+
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
26+
from hostinger_api.rest import ApiException
2727
from pprint import pprint
2828

2929

3030
# Configure Bearer authorization: apiToken
31-
configuration = hostinger-api.Configuration(
31+
configuration = hostinger_api.Configuration(
3232
access_token = os.environ["BEARER_TOKEN"]
3333
)
3434

3535
# Enter a context with an instance of the API client
36-
with hostinger-api.ApiClient(configuration) as api_client:
36+
with hostinger_api.ApiClient(configuration) as api_client:
3737
# Create an instance of the API class
38-
api_instance = hostinger-api.BillingCatalogApi(api_client)
38+
api_instance = hostinger_api.BillingCatalogApi(api_client)
3939

4040
try:
4141
# Get catalog item list

docs/BillingOrdersApi.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# hostinger-api.BillingOrdersApi
1+
# hostinger_api.BillingOrdersApi
22

33
All URIs are relative to *https://developers.hostinger.com*
44

@@ -24,23 +24,23 @@ Orders created using this endpoint will be set for automatically renewal.
2424
* Bearer Authentication (apiToken):
2525

2626
```python
27-
import hostinger-api
28-
from hostinger-api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
29-
from hostinger-api.models.billing_v1_order_store_request import BillingV1OrderStoreRequest
30-
from hostinger-api.rest import ApiException
27+
import hostinger_api
28+
from hostinger_api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
29+
from hostinger_api.models.billing_v1_order_store_request import BillingV1OrderStoreRequest
30+
from hostinger_api.rest import ApiException
3131
from pprint import pprint
3232

3333

3434
# Configure Bearer authorization: apiToken
35-
configuration = hostinger-api.Configuration(
35+
configuration = hostinger_api.Configuration(
3636
access_token = os.environ["BEARER_TOKEN"]
3737
)
3838

3939
# Enter a context with an instance of the API client
40-
with hostinger-api.ApiClient(configuration) as api_client:
40+
with hostinger_api.ApiClient(configuration) as api_client:
4141
# Create an instance of the API class
42-
api_instance = hostinger-api.BillingOrdersApi(api_client)
43-
billing_v1_order_store_request = hostinger-api.BillingV1OrderStoreRequest() # BillingV1OrderStoreRequest |
42+
api_instance = hostinger_api.BillingOrdersApi(api_client)
43+
billing_v1_order_store_request = hostinger_api.BillingV1OrderStoreRequest() # BillingV1OrderStoreRequest |
4444

4545
try:
4646
# Create new service order

docs/BillingPaymentMethodsApi.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# hostinger-api.BillingPaymentMethodsApi
1+
# hostinger_api.BillingPaymentMethodsApi
22

33
All URIs are relative to *https://developers.hostinger.com*
44

@@ -21,21 +21,21 @@ This endpoint deletes a payment method from your account.
2121
* Bearer Authentication (apiToken):
2222

2323
```python
24-
import hostinger-api
25-
from hostinger-api.models.common_success_empty_resource import CommonSuccessEmptyResource
26-
from hostinger-api.rest import ApiException
24+
import hostinger_api
25+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
26+
from hostinger_api.rest import ApiException
2727
from pprint import pprint
2828

2929

3030
# Configure Bearer authorization: apiToken
31-
configuration = hostinger-api.Configuration(
31+
configuration = hostinger_api.Configuration(
3232
access_token = os.environ["BEARER_TOKEN"]
3333
)
3434

3535
# Enter a context with an instance of the API client
36-
with hostinger-api.ApiClient(configuration) as api_client:
36+
with hostinger_api.ApiClient(configuration) as api_client:
3737
# Create an instance of the API class
38-
api_instance = hostinger-api.BillingPaymentMethodsApi(api_client)
38+
api_instance = hostinger_api.BillingPaymentMethodsApi(api_client)
3939
payment_method_id = 9693613 # int | Payment method ID
4040

4141
try:
@@ -93,21 +93,21 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
9393
* Bearer Authentication (apiToken):
9494

9595
```python
96-
import hostinger-api
97-
from hostinger-api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
98-
from hostinger-api.rest import ApiException
96+
import hostinger_api
97+
from hostinger_api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
98+
from hostinger_api.rest import ApiException
9999
from pprint import pprint
100100

101101

102102
# Configure Bearer authorization: apiToken
103-
configuration = hostinger-api.Configuration(
103+
configuration = hostinger_api.Configuration(
104104
access_token = os.environ["BEARER_TOKEN"]
105105
)
106106

107107
# Enter a context with an instance of the API client
108-
with hostinger-api.ApiClient(configuration) as api_client:
108+
with hostinger_api.ApiClient(configuration) as api_client:
109109
# Create an instance of the API class
110-
api_instance = hostinger-api.BillingPaymentMethodsApi(api_client)
110+
api_instance = hostinger_api.BillingPaymentMethodsApi(api_client)
111111

112112
try:
113113
# Get payment method list
@@ -159,21 +159,21 @@ This endpoint sets default payment method for your account.
159159
* Bearer Authentication (apiToken):
160160

161161
```python
162-
import hostinger-api
163-
from hostinger-api.models.common_success_empty_resource import CommonSuccessEmptyResource
164-
from hostinger-api.rest import ApiException
162+
import hostinger_api
163+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
164+
from hostinger_api.rest import ApiException
165165
from pprint import pprint
166166

167167

168168
# Configure Bearer authorization: apiToken
169-
configuration = hostinger-api.Configuration(
169+
configuration = hostinger_api.Configuration(
170170
access_token = os.environ["BEARER_TOKEN"]
171171
)
172172

173173
# Enter a context with an instance of the API client
174-
with hostinger-api.ApiClient(configuration) as api_client:
174+
with hostinger_api.ApiClient(configuration) as api_client:
175175
# Create an instance of the API class
176-
api_instance = hostinger-api.BillingPaymentMethodsApi(api_client)
176+
api_instance = hostinger_api.BillingPaymentMethodsApi(api_client)
177177
payment_method_id = 9693613 # int | Payment method ID
178178

179179
try:

docs/BillingSubscriptionsApi.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# hostinger-api.BillingSubscriptionsApi
1+
# hostinger_api.BillingSubscriptionsApi
22

33
All URIs are relative to *https://developers.hostinger.com*
44

@@ -20,24 +20,24 @@ This endpoint cancels a subscription and stops any further billing.
2020
* Bearer Authentication (apiToken):
2121

2222
```python
23-
import hostinger-api
24-
from hostinger-api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest
25-
from hostinger-api.models.common_success_empty_resource import CommonSuccessEmptyResource
26-
from hostinger-api.rest import ApiException
23+
import hostinger_api
24+
from hostinger_api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest
25+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
26+
from hostinger_api.rest import ApiException
2727
from pprint import pprint
2828

2929

3030
# Configure Bearer authorization: apiToken
31-
configuration = hostinger-api.Configuration(
31+
configuration = hostinger_api.Configuration(
3232
access_token = os.environ["BEARER_TOKEN"]
3333
)
3434

3535
# Enter a context with an instance of the API client
36-
with hostinger-api.ApiClient(configuration) as api_client:
36+
with hostinger_api.ApiClient(configuration) as api_client:
3737
# Create an instance of the API class
38-
api_instance = hostinger-api.BillingSubscriptionsApi(api_client)
38+
api_instance = hostinger_api.BillingSubscriptionsApi(api_client)
3939
subscription_id = 'Cxy353Uhl1xC54pG6' # str | Subscription ID
40-
billing_v1_subscription_cancel_request = hostinger-api.BillingV1SubscriptionCancelRequest() # BillingV1SubscriptionCancelRequest |
40+
billing_v1_subscription_cancel_request = hostinger_api.BillingV1SubscriptionCancelRequest() # BillingV1SubscriptionCancelRequest |
4141

4242
try:
4343
# Cancel subscription
@@ -94,21 +94,21 @@ This endpoint retrieves a list of all subscriptions associated with your account
9494
* Bearer Authentication (apiToken):
9595

9696
```python
97-
import hostinger-api
98-
from hostinger-api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
99-
from hostinger-api.rest import ApiException
97+
import hostinger_api
98+
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
99+
from hostinger_api.rest import ApiException
100100
from pprint import pprint
101101

102102

103103
# Configure Bearer authorization: apiToken
104-
configuration = hostinger-api.Configuration(
104+
configuration = hostinger_api.Configuration(
105105
access_token = os.environ["BEARER_TOKEN"]
106106
)
107107

108108
# Enter a context with an instance of the API client
109-
with hostinger-api.ApiClient(configuration) as api_client:
109+
with hostinger_api.ApiClient(configuration) as api_client:
110110
# Create an instance of the API class
111-
api_instance = hostinger-api.BillingSubscriptionsApi(api_client)
111+
api_instance = hostinger_api.BillingSubscriptionsApi(api_client)
112112

113113
try:
114114
# Get subscription list

docs/BillingV1CatalogCatalogItemPriceResource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616
## Example
1717

1818
```python
19-
from hostinger-api.models.billing_v1_catalog_catalog_item_price_resource import BillingV1CatalogCatalogItemPriceResource
19+
from hostinger_api.models.billing_v1_catalog_catalog_item_price_resource import BillingV1CatalogCatalogItemPriceResource
2020

2121
# TODO update the JSON string below
2222
json = "{}"

docs/BillingV1CatalogCatalogItemResource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
## Example
1414

1515
```python
16-
from hostinger-api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
16+
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
1717

1818
# TODO update the JSON string below
1919
json = "{}"

docs/BillingV1OrderOrderBillingAddressResource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
## Example
2121

2222
```python
23-
from hostinger-api.models.billing_v1_order_order_billing_address_resource import BillingV1OrderOrderBillingAddressResource
23+
from hostinger_api.models.billing_v1_order_order_billing_address_resource import BillingV1OrderOrderBillingAddressResource
2424

2525
# TODO update the JSON string below
2626
json = "{}"

docs/BillingV1OrderOrderResource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818
## Example
1919

2020
```python
21-
from hostinger-api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
21+
from hostinger_api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
2222

2323
# TODO update the JSON string below
2424
json = "{}"

docs/BillingV1OrderStoreRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
## Example
1313

1414
```python
15-
from hostinger-api.models.billing_v1_order_store_request import BillingV1OrderStoreRequest
15+
from hostinger_api.models.billing_v1_order_store_request import BillingV1OrderStoreRequest
1616

1717
# TODO update the JSON string below
1818
json = "{}"

docs/BillingV1OrderStoreRequestItemsInner.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from hostinger-api.models.billing_v1_order_store_request_items_inner import BillingV1OrderStoreRequestItemsInner
14+
from hostinger_api.models.billing_v1_order_store_request_items_inner import BillingV1OrderStoreRequestItemsInner
1515

1616
# TODO update the JSON string below
1717
json = "{}"

docs/BillingV1PaymentMethodPaymentMethodResource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818
## Example
1919

2020
```python
21-
from hostinger-api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
21+
from hostinger_api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
2222

2323
# TODO update the JSON string below
2424
json = "{}"

docs/BillingV1SubscriptionCancelRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from hostinger-api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest
14+
from hostinger_api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest
1515

1616
# TODO update the JSON string below
1717
json = "{}"

docs/BillingV1SubscriptionSubscriptionResource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
2222
## Example
2323

2424
```python
25-
from hostinger-api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
25+
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
2626

2727
# TODO update the JSON string below
2828
json = "{}"

docs/CommonSchemaErrorResponseSchema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from hostinger-api.models.common_schema_error_response_schema import CommonSchemaErrorResponseSchema
14+
from hostinger_api.models.common_schema_error_response_schema import CommonSchemaErrorResponseSchema
1515

1616
# TODO update the JSON string below
1717
json = "{}"

docs/CommonSchemaPaginationMetaSchema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
## Example
1313

1414
```python
15-
from hostinger-api.models.common_schema_pagination_meta_schema import CommonSchemaPaginationMetaSchema
15+
from hostinger_api.models.common_schema_pagination_meta_schema import CommonSchemaPaginationMetaSchema
1616

1717
# TODO update the JSON string below
1818
json = "{}"

docs/CommonSchemaUnauthorizedResponseSchema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from hostinger-api.models.common_schema_unauthorized_response_schema import CommonSchemaUnauthorizedResponseSchema
14+
from hostinger_api.models.common_schema_unauthorized_response_schema import CommonSchemaUnauthorizedResponseSchema
1515

1616
# TODO update the JSON string below
1717
json = "{}"

0 commit comments

Comments
 (0)