usage of the nic.at php client
at the moment it is best to use/view the file client.php which takes 3 arguments
- epp configuration (hostname, port, username, password, debuglevel etc.)
- command to execute (domain-info, person-create, etc.)
- file with default values (not implemented yet)
Example (with full debug output):
shell> php client.php epp-config.xml person-create
name : Not Me
org :
street1 : Homestreet 1
street2 :
city : Small Town US
sp : 1234
pc : 1234
cc : US
voice : +99.1234
email : spam@me.com
trid : 1234
Array
(
[0] => Array
(
[name] => Not Me
[org] =>
[street1] => Homestreet 1
[street2] =>
[city] => Small Town US
[sp] => 1234
[pc] => 1234
[cc] => US
[voice] => +99.1234
[email] => spam@me.com
[trid] => 1234
)
)
Command completed successfully
NM2699850
2009-01-28T10:25:21.00Z
1234
2009012811242537305440-992-nicat
1000
Command completed successfully
NM2699850
As you see you will be asked for all available parameters which then are filled into the epp-xml and sent to the server. Depending on the debug level either the whole xml response or only the response code, the errors and the handle (if available) will be returned