1- # hostinger-api .BillingPaymentMethodsApi
1+ # hostinger_api .BillingPaymentMethodsApi
22
33All 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
2727from 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
109109from 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
185185from 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 :
0 commit comments