Developer Center

purchasePrivacyProtection() - Buy Whois Protection

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)

getWhoisPrivacy() - Whois Protection Status modifyPrivacyProtection() - Whois Protection Status Update

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top