API Module Domain resetAuthCodeDomainRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module Domain > Reset Authorization Code== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Com…') |
|||
(2 intermediate revisions not shown) | |||
Line 9: | Line 9: | ||
|- | |- | ||
|'''Use''' | |'''Use''' | ||
- | | | + | |Generates new authorization code if registry allows it |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Input''' | |'''Input''' | ||
Line 23: | Line 23: | ||
===Using PHP class=== | ===Using PHP class=== | ||
$request = new OP_Request; | $request = new OP_Request; | ||
- | $request->setCommand(' | + | $request->setCommand('resetAuthCodeDomainRequest') |
->setAuth(array('username' => 'username', 'password' => 'password')) | ->setAuth(array('username' => 'username', 'password' => 'password')) | ||
->setArgs(array( | ->setArgs(array( | ||
Line 40: | Line 40: | ||
<password>password</password> | <password>password</password> | ||
</credentials> | </credentials> | ||
- | < | + | <resetAuthCodeDomainRequest> |
<domain> | <domain> | ||
<name>domain</name> | <name>domain</name> | ||
<extension>com</extension> | <extension>com</extension> | ||
</domain> | </domain> | ||
- | </ | + | </resetAuthCodeDomainRequest> |
</openXML> | </openXML> | ||
Line 51: | Line 51: | ||
<openXML> | <openXML> | ||
<reply> | <reply> | ||
- | < code>0</code> | + | <nowiki><code>0</code></nowiki> |
<desc></desc> | <desc></desc> | ||
</reply> | </reply> | ||
</openXML> | </openXML> |
Current revision as of 08:12, 21 January 2021
Contents |
Module Domain > Reset Authorization Code
Module | domain |
Command name | resetAuthCodeDomainRequest |
Use | Generates new authorization code if registry allows it |
Input | |
Output |
- |
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('resetAuthCodeDomainRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'domain' => array( 'name' => 'domain', 'extension' => 'com' ), ));
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> <resetAuthCodeDomainRequest> <domain> <name>domain</name> <extension>com</extension> </domain> </resetAuthCodeDomainRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> <code>0</code> <desc></desc> </reply> </openXML>