All URIs are relative to https://developers.hostinger.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getDomainListV1() | GET /api/domains/v1/portfolio | Get domain list |
getDomainListV1(): \Hostinger\Model\DomainsV1DomainDomainResource[]
Get domain list
This endpoint retrieves a list of all domains associated with your account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\DomainsPortfolioApi(config: $config);
try {
$result = $apiInstance->getDomainListV1();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DomainsPortfolioApi->getDomainListV1: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Hostinger\Model\DomainsV1DomainDomainResource[]
[Back to top] [Back to API list] [Back to Model list] [Back to README]