HostFact API versie 3.1
Contacten
Contacten zijn te beheren via de controller 'handle'.
listdomain
Middels deze functie kunt u een nieuw lijst ophalen met domeinnamen waarbij de handle wordt gebruikt.
Voorbeeldbestand: /voorbeelden/handle/handle.listdomain.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een contact |
Handle | string | Het contactnummer |
offset | int | Standaard: 0 |
limit | int | Standaard: 1000 |
sort | string | Standaard: Domain |
order | 'ASC' of 'DESC' | Standaard: ASC |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $handleParams = array( 'Handle' => 'DB0001-001' ); $response = $api->sendRequest('handle', 'listdomain', $handleParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => handle [action] => listdomain [status] => success [date] => 2022-11-24T12:00:00+02:00 [totalresults] => 2 [currentresults] => 2 [offset] => 0 [handles] => Array ( [0] => Array ( [Identifier] => 2 [Domain] => dnsexample [Tld] => com [Debtor] => 1 [RegistrationDate] => [ExpirationDate] => 2018-07-31 [TerminationDate] => [Registrar] => 1 [Status] => 4 ) [1] => Array ( [Identifier] => 1 [Domain] => example [Tld] => com [Debtor] => 1 [RegistrationDate] => [ExpirationDate] => 2018-07-13 [TerminationDate] => [Registrar] => 1 [Status] => 1 ) ) )