Developer Center

EN

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.

suspend() , unsuspend() , terminate() modifyAuthCode() - Update Transfer Code

Do you have any questions?

We have a great team to answer your queries
Contact Us
Copyright © 2020. All rights reserved.
Join Our Discord Channel
Top