metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 156 forks source link

Get EURid Validdate authorisation code #99

Closed jvdmb closed 7 years ago

jvdmb commented 7 years ago

We've added the following function in euridEppInfoDomainResponse.php:

public function getAuthorisationCodeValidDate() {
    $xpath = $this->xPath();
    $result = $xpath->query('/epp:epp/epp:response/epp:extension/authInfo:infData/authInfo:validUntil');
    if ($result->length > 0) {
            return $result->item(0)->nodeValue;
    } else {
        return null;
    }
}

Feel free to use it ;-)

metaregistrar commented 7 years ago

Added to the repository