diff --git a/examples/DomainReport.php b/examples/DomainReport.php new file mode 100644 index 0000000..28f12c5 --- /dev/null +++ b/examples/DomainReport.php @@ -0,0 +1,45 @@ + 'test.example' + ); + $domainReport = $epp->domainReport($params); + + if (array_key_exists('error', $domainReport)) + { + echo 'DomainReport Error: ' . $domainReport['error'] . PHP_EOL; + } + else + { + echo "DomainReport result: " . $domainReport['code'] . ": " . $domainReport['msg'] . PHP_EOL; + } + + $logout = $epp->logout(); + + echo 'Logout Result: ' . $logout['code'] . ': ' . $logout['msg'][0] . PHP_EOL; +} +catch(EppException $e) +{ + echo 'Error: ', $e->getMessage(); +}