User Guide and Documentation

purchasePrivacyProtection() - Buy Whois ProtectionRelease Date: 2019/07/30

If the whois hiding feature of the domain name is paid, this function enables purchasing and activation.

public function purchasePrivacyProtection($params=[]){
    $domain     = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);

    $apply = $this->api->purchase_whois_privacy($domain);
    if(!$apply){
        $this->error = $this->api->error;
        return false;
    }

    return true;
}

Parameters;

  • $params Provides the value of [options] index in the $order variable in the class.

Retrieval Value;

Boolean (true or false)

Copyright © 2019. All rights reserved.
Top