WeFact Hosting API versie 2.7



Domain

Domeinnamen zijn te beheren via de controller 'domain'.



list

Middels deze functie kunt u een lijst met domeinnamen ophalen die voldoen aan de meegegeven parameters.
Voorbeeldbestand: /voorbeelden/domain/domain.list.php


Invoerparameters:
Veldnaam Waarde Omschrijving
status string Domeinnaam status, zie variabelen-lijst
offset int Standaard: 0
limit int Standaard: 1000
sort string Standaard: Domain
order 'ASC' of 'DESC' Standaard: ASC
searchat string Welke velden doorzocht moeten worden.
Standaard: Domain
searchfor string Zoekterm
created filter_datetime Filtermogelijkheid op aanmaakdatum
modified filter_datetime Filtermogelijkheid op wijzigingsdatum

Voorbeeld invoer:
<?php

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

$api = new WeFactAPI();

$domainParams = array(
				// Get all domains of customer DB0001
				'searchat' 			=> 'DebtorCode',
				'searchfor' 		=> 'DB0001'
);

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

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => domain
    [action] => list
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [totalresults] => 2
    [currentresults] => 2
    [offset] => 0
    [filters] => Array
        (
            [searchat] => DebtorCode
            [searchfor] => DB0001
        )

    [domains] => Array
        (
            [0] => Array
                (
                    [Identifier] => 2
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Domain] => dnsexample
                    [Tld] => com
                    [RegistrationDate] => 
                    [ExpirationDate] => 2017-07-31
                    [Status] => 4
                    [Registrar] => 1
                    [RegistrarName] => Example registrar
                    [HostingID] => 0
                    [Modified] => 2016-09-01 12:00:00
                )

            [1] => Array
                (
                    [Identifier] => 1
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Domain] => example
                    [Tld] => com
                    [RegistrationDate] => 
                    [ExpirationDate] => 2017-07-13
                    [Status] => 1
                    [Registrar] => 1
                    [RegistrarName] => Example registrar
                    [HostingID] => 2
                    [Subscription] => Array
                        (
                            [ProductCode] => P003
                            [Description] => Domain .com
                            [Number] => 1
                            [PriceExcl] => 15
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [Periods] => 1
                            [Periodic] => j
                            [StartPeriod] => 2017-07-13
                            [EndPeriod] => 2018-07-13
                            [NextDate] => 2017-06-29
                            [TerminationDate] => 
                            [AmountExcl] => 15
                            [AmountIncl] => 18.15
                        )

                    [Modified] => 2016-09-01 12:00:00
                )

        )

)