Skip to content

Commit 9614495

Browse files
committed
chore: SDK update
1 parent 8429d31 commit 9614495

File tree

237 files changed

+961
-961
lines changed

Some content is hidden

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

237 files changed

+961
-961
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PROJECKT_NAME
1+
# Hostinger API Python SDK
22
> [!caution]
33
> Currently, this API is in beta stage, meaning that breaking changes, while unlikely, might be introduced.
44
> If you encounter any issues or have any feedback, please create an issue on the [Github Repository](https://github.com/hostinger/api/issues).
@@ -59,7 +59,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
5959

6060
Then import the package:
6161
```python
62-
import hostinger-api
62+
import hostinger_api
6363
```
6464

6565
### Setuptools
@@ -73,7 +73,7 @@ python setup.py install --user
7373

7474
Then import the package:
7575
```python
76-
import hostinger-api
76+
import hostinger_api
7777
```
7878

7979
### Tests
@@ -86,13 +86,13 @@ Please follow the [installation procedure](#installation--usage) and then run th
8686

8787
```python
8888
89-
import hostinger-api
90-
from hostinger-api.rest import ApiException
89+
import hostinger_api
90+
from hostinger_api.rest import ApiException
9191
from pprint import pprint
9292
9393
# Defining the host is optional and defaults to https://developers.hostinger.com
9494
# See configuration.py for a list of all supported configuration parameters.
95-
configuration = hostinger-api.Configuration(
95+
configuration = hostinger_api.Configuration(
9696
host = "https://developers.hostinger.com"
9797
)
9898
@@ -102,15 +102,15 @@ configuration = hostinger-api.Configuration(
102102
# satisfies your auth use case.
103103
104104
# Configure Bearer authorization: apiToken
105-
configuration = hostinger-api.Configuration(
105+
configuration = hostinger_api.Configuration(
106106
access_token = os.environ["BEARER_TOKEN"]
107107
)
108108
109109
110110
# Enter a context with an instance of the API client
111-
with hostinger-api.ApiClient(configuration) as api_client:
111+
with hostinger_api.ApiClient(configuration) as api_client:
112112
# Create an instance of the API class
113-
api_instance = hostinger-api.BillingCatalogApi(api_client)
113+
api_instance = hostinger_api.BillingCatalogApi(api_client)
114114
115115
try:
116116
# Get catalog item list

docs/BillingCatalogApi.md

Lines changed: 8 additions & 8 deletions
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,14 +21,14 @@ 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
# Defining the host is optional and defaults to https://developers.hostinger.com
3030
# See configuration.py for a list of all supported configuration parameters.
31-
configuration = hostinger-api.Configuration(
31+
configuration = hostinger_api.Configuration(
3232
host = "https://developers.hostinger.com"
3333
)
3434

@@ -38,14 +38,14 @@ configuration = hostinger-api.Configuration(
3838
# satisfies your auth use case.
3939

4040
# Configure Bearer authorization: apiToken
41-
configuration = hostinger-api.Configuration(
41+
configuration = hostinger_api.Configuration(
4242
access_token = os.environ["BEARER_TOKEN"]
4343
)
4444

4545
# Enter a context with an instance of the API client
46-
with hostinger-api.ApiClient(configuration) as api_client:
46+
with hostinger_api.ApiClient(configuration) as api_client:
4747
# Create an instance of the API class
48-
api_instance = hostinger-api.BillingCatalogApi(api_client)
48+
api_instance = hostinger_api.BillingCatalogApi(api_client)
4949

5050
try:
5151
# Get catalog item list

docs/BillingOrdersApi.md

Lines changed: 10 additions & 10 deletions
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,15 +24,15 @@ 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
# Defining the host is optional and defaults to https://developers.hostinger.com
3434
# See configuration.py for a list of all supported configuration parameters.
35-
configuration = hostinger-api.Configuration(
35+
configuration = hostinger_api.Configuration(
3636
host = "https://developers.hostinger.com"
3737
)
3838

@@ -42,15 +42,15 @@ configuration = hostinger-api.Configuration(
4242
# satisfies your auth use case.
4343

4444
# Configure Bearer authorization: apiToken
45-
configuration = hostinger-api.Configuration(
45+
configuration = hostinger_api.Configuration(
4646
access_token = os.environ["BEARER_TOKEN"]
4747
)
4848

4949
# Enter a context with an instance of the API client
50-
with hostinger-api.ApiClient(configuration) as api_client:
50+
with hostinger_api.ApiClient(configuration) as api_client:
5151
# Create an instance of the API class
52-
api_instance = hostinger-api.BillingOrdersApi(api_client)
53-
billing_v1_order_store_request = hostinger-api.BillingV1OrderStoreRequest() # BillingV1OrderStoreRequest |
52+
api_instance = hostinger_api.BillingOrdersApi(api_client)
53+
billing_v1_order_store_request = hostinger_api.BillingV1OrderStoreRequest() # BillingV1OrderStoreRequest |
5454

5555
try:
5656
# Create new service order

docs/BillingPaymentMethodsApi.md

Lines changed: 22 additions & 22 deletions
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,14 +21,14 @@ 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
# Defining the host is optional and defaults to https://developers.hostinger.com
3030
# See configuration.py for a list of all supported configuration parameters.
31-
configuration = hostinger-api.Configuration(
31+
configuration = hostinger_api.Configuration(
3232
host = "https://developers.hostinger.com"
3333
)
3434

@@ -38,14 +38,14 @@ configuration = hostinger-api.Configuration(
3838
# satisfies your auth use case.
3939

4040
# Configure Bearer authorization: apiToken
41-
configuration = hostinger-api.Configuration(
41+
configuration = hostinger_api.Configuration(
4242
access_token = os.environ["BEARER_TOKEN"]
4343
)
4444

4545
# Enter a context with an instance of the API client
46-
with hostinger-api.ApiClient(configuration) as api_client:
46+
with hostinger_api.ApiClient(configuration) as api_client:
4747
# Create an instance of the API class
48-
api_instance = hostinger-api.BillingPaymentMethodsApi(api_client)
48+
api_instance = hostinger_api.BillingPaymentMethodsApi(api_client)
4949
payment_method_id = 9693613 # int | Payment method ID
5050

5151
try:
@@ -103,14 +103,14 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
103103
* Bearer Authentication (apiToken):
104104

105105
```python
106-
import hostinger-api
107-
from hostinger-api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
108-
from hostinger-api.rest import ApiException
106+
import hostinger_api
107+
from hostinger_api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
108+
from hostinger_api.rest import ApiException
109109
from pprint import pprint
110110

111111
# Defining the host is optional and defaults to https://developers.hostinger.com
112112
# See configuration.py for a list of all supported configuration parameters.
113-
configuration = hostinger-api.Configuration(
113+
configuration = hostinger_api.Configuration(
114114
host = "https://developers.hostinger.com"
115115
)
116116

@@ -120,14 +120,14 @@ configuration = hostinger-api.Configuration(
120120
# satisfies your auth use case.
121121

122122
# Configure Bearer authorization: apiToken
123-
configuration = hostinger-api.Configuration(
123+
configuration = hostinger_api.Configuration(
124124
access_token = os.environ["BEARER_TOKEN"]
125125
)
126126

127127
# Enter a context with an instance of the API client
128-
with hostinger-api.ApiClient(configuration) as api_client:
128+
with hostinger_api.ApiClient(configuration) as api_client:
129129
# Create an instance of the API class
130-
api_instance = hostinger-api.BillingPaymentMethodsApi(api_client)
130+
api_instance = hostinger_api.BillingPaymentMethodsApi(api_client)
131131

132132
try:
133133
# Get payment method list
@@ -179,14 +179,14 @@ This endpoint sets default payment method for your account.
179179
* Bearer Authentication (apiToken):
180180

181181
```python
182-
import hostinger-api
183-
from hostinger-api.models.common_success_empty_resource import CommonSuccessEmptyResource
184-
from hostinger-api.rest import ApiException
182+
import hostinger_api
183+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
184+
from hostinger_api.rest import ApiException
185185
from pprint import pprint
186186

187187
# Defining the host is optional and defaults to https://developers.hostinger.com
188188
# See configuration.py for a list of all supported configuration parameters.
189-
configuration = hostinger-api.Configuration(
189+
configuration = hostinger_api.Configuration(
190190
host = "https://developers.hostinger.com"
191191
)
192192

@@ -196,14 +196,14 @@ configuration = hostinger-api.Configuration(
196196
# satisfies your auth use case.
197197

198198
# Configure Bearer authorization: apiToken
199-
configuration = hostinger-api.Configuration(
199+
configuration = hostinger_api.Configuration(
200200
access_token = os.environ["BEARER_TOKEN"]
201201
)
202202

203203
# Enter a context with an instance of the API client
204-
with hostinger-api.ApiClient(configuration) as api_client:
204+
with hostinger_api.ApiClient(configuration) as api_client:
205205
# Create an instance of the API class
206-
api_instance = hostinger-api.BillingPaymentMethodsApi(api_client)
206+
api_instance = hostinger_api.BillingPaymentMethodsApi(api_client)
207207
payment_method_id = 9693613 # int | Payment method ID
208208

209209
try:

docs/BillingSubscriptionsApi.md

Lines changed: 8 additions & 8 deletions
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

@@ -19,14 +19,14 @@ This endpoint retrieves a list of all subscriptions associated with your account
1919
* Bearer Authentication (apiToken):
2020

2121
```python
22-
import hostinger-api
23-
from hostinger-api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
24-
from hostinger-api.rest import ApiException
22+
import hostinger_api
23+
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
24+
from hostinger_api.rest import ApiException
2525
from pprint import pprint
2626

2727
# Defining the host is optional and defaults to https://developers.hostinger.com
2828
# See configuration.py for a list of all supported configuration parameters.
29-
configuration = hostinger-api.Configuration(
29+
configuration = hostinger_api.Configuration(
3030
host = "https://developers.hostinger.com"
3131
)
3232

@@ -36,14 +36,14 @@ configuration = hostinger-api.Configuration(
3636
# satisfies your auth use case.
3737

3838
# Configure Bearer authorization: apiToken
39-
configuration = hostinger-api.Configuration(
39+
configuration = hostinger_api.Configuration(
4040
access_token = os.environ["BEARER_TOKEN"]
4141
)
4242

4343
# Enter a context with an instance of the API client
44-
with hostinger-api.ApiClient(configuration) as api_client:
44+
with hostinger_api.ApiClient(configuration) as api_client:
4545
# Create an instance of the API class
46-
api_instance = hostinger-api.BillingSubscriptionsApi(api_client)
46+
api_instance = hostinger_api.BillingSubscriptionsApi(api_client)
4747

4848
try:
4949
# Get subscription list

docs/BillingV1CatalogCatalogItemPriceResource.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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 = "{}"

0 commit comments

Comments
 (0)