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