metaregistrar / php-epp-client

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

Example Auth request #74

Closed pc-partner closed 7 years ago

pc-partner commented 7 years ago

Hi,

Has anywone an example on how to request a transfer key? Implement EppAuthcodeRequest

metaregistrar commented 7 years ago

Most registries will give you the auth key in the domain:info command. Or you can set it with a domain:update command.

But some registries (.NU .BE for example) will not show the auth info in the domain:info command. These registries all have their own methods to retrieve the auth info, you should ask them. There is no uniform way.

pc-partner commented 7 years ago

You have at dnsbe the request: dnsbeEppAuthcodeRequest That should be used. but how should it be used?

metaregistrar commented 7 years ago

If you have a direct connection to DNS Belgium, you can try: $domainname = 'xxxxxxxx.be'; $request = new dnsbeEppAuthcodeRequest($domainname); if ($response = $conn->request($request)) { echo $response->saveXML(); }

pc-partner commented 7 years ago

That works