HostFact API versie 3.1



Hosting

Hostingaccounts zijn te beheren via de controller 'hosting'.



unsuspend

Met behulp van deze functie is het mogelijk om een hosting account te deblokkeren.
Voorbeeldbestand: /voorbeelden/hosting/hosting.unsuspend.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een hosting account
Username string De accountnaam (en gebruikersnaam)
Verplichte velden: Identifier of Username

Voorbeeld invoer:
<?php

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

$api = new HostFactAPI();

$hostingParams = array(
				'Username'	=> 'suspendedaccount'
);

$response = $api->sendRequest('hosting', 'unsuspend', $hostingParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => hosting
    [action] => unsuspend
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [success] => Array
        (
            [0] => De blokkering van hostingaccount suspendedaccount is opgeheven, het hostingaccount is weer actief
        )

)