ModifyWhois() - Update Whois
It is used to update the whois information of the domain, if not supported, an error message appears.
public function ModifyWhois($params=[],$whois=[]){
$domain = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);
$modify = $this->api->modify_contact($domain,$whois);
if(!$modify){
$this->error = $this->api->error;
return false;
}
return true;
}
Parameters;
- $params Provides the value of [options] index in the $order variable in the class.
- $whois Whois information, example:
Array ( [Name] => John Doe [FirstName] => John [LastName] => Doe [Company] => WISECP [AddressLine1] => sample sample test sample test [AddressLine2] => test test [ZipCode] => 0000 [State] => NY [City] => New York [Country] => US [PhoneCountryCode] => 1 [Phone] => 2025550103 [FaxCountryCode] => 1 [Fax] => 2025550103 [EMail] => [email protected] )
Retrieval Value;
Boolean (true or false) should be displayed.