getAuthCode() - Get Transfer Code
It is used to view the transfer code of the domain name.
public function getAuthCode($params=[]){
$domain = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);
$details = $this->api->get_details($domain);
if(!$details){
$this->error = $this->api->error;
return false;
}
$authCode = $details["AuthCode"];
return $authCode;
}
Parameters;
- $params Provides the value of [options] index in the $order variable in the class.
Retrieval Value;
Transfer code of the domain name should be transmitted.