User Guide and Documentation

getAuthCode() - Get Transfer CodeRelease Date: 2019/07/30

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.

Copyright © 2019. All rights reserved.
Top