HostFact API versie 3.1



Domain

Domeinnamen zijn te beheren via de controller 'domain'.



show

Middels deze functie kunt u meer informatie over een domeinnaam ophalen.
Voorbeeldbestand: /voorbeelden/domain/domain.show.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een domeinnaam
Domain string Domeinnaam (zonder extensie)
Tld string Extensie
ShowHandleInfo 'yes' of 'no' Bepaalt of Handle informatie ook meegegeven wordt. Standaard: 'no'
Verplichte velden: Identifier of Domain en Tld

Voorbeeld invoer:
<?php

require_once("../hostfact_api.php");

$api = new HostFactAPI();

$domainParams = array(
				'Domain'	=> 'example',
				'Tld'		=> 'com'
);

$response = $api->sendRequest('domain', 'show', $domainParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => domain
    [action] => show
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [domain] => Array
        (
            [Identifier] => 1
            [Domain] => example
            [Tld] => com
            [Debtor] => 1
            [DebtorCode] => DB0001
            [HostingID] => 2
            [Status] => 1
            [RegistrationDate] => 
            [ExpirationDate] => 2018-07-13
            [Registrar] => 1
            [DNS1] => ns1.example.com
            [DNS2] => ns2.example.com
            [DNS3] => 
            [DNS1IP] => 
            [DNS2IP] => 
            [DNS3IP] => 
            [DNSTemplate] => 0
            [OwnerHandle] => 1
            [AdminHandle] => 1
            [TechHandle] => 1
            [DomainAutoRenew] => on
            [Comment] => 
            [Created] => 2022-11-24 11:00:00
            [Modified] => 2022-11-24 11:00:00
            [RegistrarInfo] => Array
                (
                    [Identifier] => 1
                    [Class] => registrarclass
                    [Name] => Example registrar
                    [Testmode] => 1
                    [DefaultDNSTemplate] => 0
                    [AdminHandle] => 0
                    [TechHandle] => 0
                )

            [Subscription] => Array
                (
                    [Number] => 1
                    [NumberSuffix] => 
                    [ProductCode] => P003
                    [Description] => Domain .com
                    [PriceExcl] => 15
                    [PriceIncl] => 18.15
                    [TaxPercentage] => 21
                    [DiscountPercentage] => 0
                    [Periods] => 1
                    [Periodic] => j
                    [StartPeriod] => 2018-07-13
                    [EndPeriod] => 2019-07-13
                    [NextDate] => 2018-06-29
                    [ContractPeriods] => 1
                    [ContractPeriodic] => j
                    [StartContract] => 2018-07-13
                    [EndContract] => 2018-07-13
                    [TerminationDate] => 
                    [Reminder] => 
                    [InvoiceAuthorisation] => yes
                    [AmountExcl] => 15
                    [AmountIncl] => 18.15
                )

            [Translations] => Array
                (
                    [RegistrarName] => Example registrar
                    [Status] => Wachten op actie
                )

        )

)