All URIs are relative to https://developers.hostinger.com
| Method | HTTP request | Description |
|---|---|---|
| get_transfer_list_v1 | GET /api/domains/v1/transfers | Get transfer list |
| get_transfer_v1 | GET /api/domains/v1/transfers/{domain} | Get transfer |
List[DomainsV1TransferTransferResource] get_transfer_list_v1()
Get transfer list
Retrieve all domain transfers in your portfolio.
Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
- Bearer Authentication (apiToken):
import hostinger_api
from hostinger_api.models.domains_v1_transfer_transfer_resource import DomainsV1TransferTransferResource
from hostinger_api.rest import ApiException
from pprint import pprint
# Configure Bearer authorization: apiToken
configuration = hostinger_api.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with hostinger_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hostinger_api.DomainsTransferApi(api_client)
try:
# Get transfer list
api_response = api_instance.get_transfer_list_v1()
print("The response of DomainsTransferApi->get_transfer_list_v1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DomainsTransferApi->get_transfer_list_v1: %s\n" % e)This endpoint does not need any parameter.
List[DomainsV1TransferTransferResource]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
| 401 | Unauthenticated response | - |
| 500 | Error response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsV1TransferTransferResource get_transfer_v1(domain)
Get transfer
Retrieve the transfer for a specified domain.
Use this endpoint to track an incoming or outgoing registrar transfer and its status.
- Bearer Authentication (apiToken):
import hostinger_api
from hostinger_api.models.domains_v1_transfer_transfer_resource import DomainsV1TransferTransferResource
from hostinger_api.rest import ApiException
from pprint import pprint
# Configure Bearer authorization: apiToken
configuration = hostinger_api.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with hostinger_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hostinger_api.DomainsTransferApi(api_client)
domain = 'mydomain.tld' # str | Domain name
try:
# Get transfer
api_response = api_instance.get_transfer_v1(domain)
print("The response of DomainsTransferApi->get_transfer_v1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DomainsTransferApi->get_transfer_v1: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| domain | str | Domain name |
DomainsV1TransferTransferResource
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
| 401 | Unauthenticated response | - |
| 500 | Error response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]