API Module Domain deleteDomainRequest
From Openprovider API documentation
(Difference between revisions)
(→Raw XML) |
(→Module Domain > Delete) |
||
| Line 17: | Line 17: | ||
*'''[[API Format Domain|domain]]''' | *'''[[API Format Domain|domain]]''' | ||
*id (''only required if there are two identical domains in your account, for example pre-registrations'') | *id (''only required if there are two identical domains in your account, for example pre-registrations'') | ||
| - | *type | + | *[[API Format type|type]] |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Output''' | |'''Output''' | ||
Revision as of 06:22, 17 June 2016
Contents |
Module Domain > Delete
| Module | domain |
| Command name | deleteDomainRequest |
| Use | Deletes a domain name.
|
| Input | |
| Output |
- |
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('deleteDomainRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'domain' => array(
'name' => 'domain-to-delete',
'extension' => 'nl'
)
));
Raw XML
Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<deleteDomainRequest>
<domain>
<name>domain-to-delete</name>
<extension>nl</extension>
</domain>
</deleteDomainRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
<code>0</code>
<desc></desc>
</reply>
</openXML>