Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.35 KB

DomainsPortfolioApi.md

File metadata and controls

51 lines (32 loc) · 1.35 KB

Hostinger\DomainsPortfolioApi

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()

getDomainListV1(): \Hostinger\Model\DomainsV1DomainDomainResource[]

Get domain list

This endpoint retrieves a list of all domains associated with your account.

Example

<?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;
}

Parameters

This endpoint does not need any parameter.

Return type

\Hostinger\Model\DomainsV1DomainDomainResource[]

[Back to top] [Back to API list] [Back to Model list] [Back to README]