1
- # hostinger-api .BillingPaymentMethodsApi
1
+ # hostinger_api .BillingPaymentMethodsApi
2
2
3
3
All URIs are relative to * https://developers.hostinger.com *
4
4
@@ -21,21 +21,21 @@ This endpoint deletes a payment method from your account.
21
21
* Bearer Authentication (apiToken):
22
22
23
23
``` 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
27
27
from pprint import pprint
28
28
29
29
30
30
# Configure Bearer authorization: apiToken
31
- configuration = hostinger - api .Configuration(
31
+ configuration = hostinger_api .Configuration(
32
32
access_token = os.environ[" BEARER_TOKEN" ]
33
33
)
34
34
35
35
# 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:
37
37
# Create an instance of the API class
38
- api_instance = hostinger - api .BillingPaymentMethodsApi(api_client)
38
+ api_instance = hostinger_api .BillingPaymentMethodsApi(api_client)
39
39
payment_method_id = 9693613 # int | Payment method ID
40
40
41
41
try :
@@ -93,21 +93,21 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
93
93
* Bearer Authentication (apiToken):
94
94
95
95
``` 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
99
99
from pprint import pprint
100
100
101
101
102
102
# Configure Bearer authorization: apiToken
103
- configuration = hostinger - api .Configuration(
103
+ configuration = hostinger_api .Configuration(
104
104
access_token = os.environ[" BEARER_TOKEN" ]
105
105
)
106
106
107
107
# 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:
109
109
# Create an instance of the API class
110
- api_instance = hostinger - api .BillingPaymentMethodsApi(api_client)
110
+ api_instance = hostinger_api .BillingPaymentMethodsApi(api_client)
111
111
112
112
try :
113
113
# Get payment method list
@@ -159,21 +159,21 @@ This endpoint sets default payment method for your account.
159
159
* Bearer Authentication (apiToken):
160
160
161
161
``` 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
165
165
from pprint import pprint
166
166
167
167
168
168
# Configure Bearer authorization: apiToken
169
- configuration = hostinger - api .Configuration(
169
+ configuration = hostinger_api .Configuration(
170
170
access_token = os.environ[" BEARER_TOKEN" ]
171
171
)
172
172
173
173
# 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:
175
175
# Create an instance of the API class
176
- api_instance = hostinger - api .BillingPaymentMethodsApi(api_client)
176
+ api_instance = hostinger_api .BillingPaymentMethodsApi(api_client)
177
177
payment_method_id = 9693613 # int | Payment method ID
178
178
179
179
try :
0 commit comments