API Module Domain createDomainRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module Domain > Create== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command name''' |crea…') |
|||
Line 46: | Line 46: | ||
===Raw XML=== | ===Raw XML=== | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
- | < | + | <openXML> |
<credentials> | <credentials> | ||
<username>username</username> | <username>username</username> | ||
<password>password</password> | <password>password</password> | ||
</credentials> | </credentials> | ||
- | < | + | <createDomainRequest> |
- | < | + | <ownerHandle>SR003891-NL</ownerHandle> |
- | < | + | <adminHandle>SR003891-NL</adminHandle> |
- | < | + | <techHandle>SR003891-NL</techHandle> |
<domain> | <domain> | ||
<name>this-domain-is-registered</name> | <name>this-domain-is-registered</name> | ||
Line 60: | Line 60: | ||
</domain> | </domain> | ||
<period>1</period> | <period>1</period> | ||
- | < | + | <nsGroup>opdrs4</nsGroup> |
- | </ | + | </createDomainRequest> |
- | </ | + | </openXML> |
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
- | < | + | <openXML> |
<reply> | <reply> | ||
- | <code>0</code> | + | < code>0</code> |
<desc> | <desc> | ||
</desc> | </desc> | ||
<data> | <data> | ||
- | < | + | <expirationDate>2011-04-22 14:41:32</expirationDate> |
</data> | </data> | ||
</reply> | </reply> | ||
- | </ | + | </openXML> |
Revision as of 13:46, 1 July 2010
Contents |
Module Domain > Create
Module | domain |
Command name | createDomainRequest |
Use | Registers a domain with the provided data |
Input |
|
Output | Expiration date in case of a succeeded realtime domain registration
|
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('createDomainRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'ownerHandle' => 'SR003891-NL', 'adminHandle' => 'SR003891-NL', 'techHandle' => 'SR003891-NL', 'domain' => array( 'name' => 'this-domain-is-registered', 'extension' => 'com' ), 'period' => '1', 'nsGroup' => 'opdrs4' ));
Raw XML
<?xml version="1.0" encoding="UTF-8"?> <openXML> <credentials> <username>username</username> <password>password</password> </credentials> <createDomainRequest> <ownerHandle>SR003891-NL</ownerHandle> <adminHandle>SR003891-NL</adminHandle> <techHandle>SR003891-NL</techHandle> <domain> <name>this-domain-is-registered</name> <extension>com</extension> </domain> <period>1</period> <nsGroup>opdrs4</nsGroup> </createDomainRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> < code>0</code> <desc> </desc> <data> <expirationDate>2011-04-22 14:41:32</expirationDate> </data> </reply> </openXML>