API Module Domain tradeDomainRequest
From Openprovider API documentation
(Difference between revisions)
WikiSysop (Talk | contribs)
(Created page with '==Module Domain > Trade== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command name''' |trade…')
Newer edit →
(Created page with '==Module Domain > Trade== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command name''' |trade…')
Newer edit →
Revision as of 15:17, 22 April 2010
Contents |
Module Domain > Trade
Module | domain |
Command name | tradeDomainRequest |
Use | Changes the owner of an existing domain |
Input |
|
Output |
- |
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('tradeDomainRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'ownerHandle' => 'SR003891-NL', 'adminHandle' => 'SR003891-NL', 'techHandle' => 'SR003891-NL', 'domain' => array( 'name' => 'openprovider', 'extension' => 'nl' ), 'nsGroup' => 'MyServer' ));
Raw XML
<?xml version="1.0" encoding="UTF-8"?> <openxml> <credentials> <username>username</username> <password>password</password> </credentials> <tradedomainrequest> <ownerhandle>SR003891-NL</ownerhandle> <adminhandle>SR003891-NL</adminhandle> <techhandle>SR003891-NL</techhandle> <domain> <name>openprovider</name> <extension>nl</extension> </domain> <nsgroup>MyServer</nsgroup> </tradedomainrequest> </openxml>
<?xml version="1.0" encoding="UTF-8"?>
<openxml>
<reply>
364
<desc>Owner handle must differ from the current one.</desc>
<data />
</reply>
</openxml>