HostFact API versie 3.1
Contacten
Contacten zijn te beheren via de controller 'handle'.
show
Middels deze functie kunt u meer informatie over een contact ophalen.
Voorbeeldbestand: /voorbeelden/handle/handle.show.php
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Identifier | int | De unieke ID van een contact |
| Handle | string | Het contactnummer |
Voorbeeld invoer:
<?php
require_once("../hostfact_api.php");
$api = new HostFactAPI();
$handleParams = array(
'Handle' => 'DB0001-001'
);
$response = $api->sendRequest('handle', 'show', $handleParams);
print_r_pre($response);
?>Voorbeeld uitvoer:
Array
(
[controller] => handle
[action] => show
[status] => success
[date] => 2022-11-24T12:00:00+02:00
[handle] => Array
(
[Identifier] => 1
[Handle] => DB0001-001
[Registrar] => 1
[RegistrarHandle] =>
[Debtor] => 1
[DebtorCode] => DB0001
[CompanyName] => Company X
[CompanyNumber] => 123456789
[LegalForm] => ANDERS
[TaxNumber] => NL123456789B01
[Sex] => m
[Initials] => John
[SurName] => Jackson
[Address] => Keizersgracht 100
[ZipCode] => 1015 AA
[City] => Amsterdam
[Country] => NL
[EmailAddress] => info@company.com
[PhoneNumber] => 010 - 22 33 44
[FaxNumber] =>
[Created] => 2022-11-24 11:00:00
[Modified] => 2022-11-24 11:00:00
[Translations] => Array
(
[LegalForm] => Anders of onbekend
[Country] => Nederland
[RegistrarName] => Example registrar
)
)
)