HostFact API versie 3.1
Contacten
Contacten zijn te beheren via de controller 'handle'.
delete
Met deze functie kunt u een contact verwijderen.
Voorbeeldbestand: /voorbeelden/handle/handle.delete.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', 'delete', $handleParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => handle [action] => delete [status] => success [date] => 2022-11-24T12:00:00+02:00 [success] => Array ( [0] => Contact is verwijderd ) )