API Module SSL modifySslCertRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module SSL certificates > Modify Order== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |SSL certificates |- style="background-color:#EEEEEE;"…') |
|||
| Line 21: | Line 21: | ||
- | - | ||
|} | |} | ||
| + | |||
| + | ==Examples== | ||
| + | ===Using PHP class=== | ||
| + | $request = new OP_Request; | ||
| + | $request->setCommand('modifySslCertRequest') | ||
| + | ->setAuth(array('username' => 'username', 'password' => 'password')) | ||
| + | ->setArgs(array( | ||
| + | 'id' => 5, | ||
| + | 'domainValidationMethods' => array( | ||
| + | 'openprovider.com' => 'dns', | ||
| + | ), | ||
| + | )); | ||
| + | |||
| + | ===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> | ||
| + | <modifySslCertRequest> | ||
| + | <id>28945</id> | ||
| + | <domainValidationMethods> | ||
| + | <openprovider.ru>dns</openprovider.ru> | ||
| + | </domainValidationMethods> | ||
| + | </modifySslCertRequest> | ||
| + | </openXML> | ||
| + | |||
| + | <?xml version="1.0" encoding="UTF-8"?> | ||
| + | <openXML> | ||
| + | <reply> | ||
| + | < code>0</code> | ||
| + | <desc /> | ||
| + | <data> | ||
| + | <id>2480</id> | ||
| + | </data> | ||
| + | </reply> | ||
| + | </openXML> | ||
Revision as of 15:53, 26 March 2015
Contents |
Module SSL certificates > Modify Order
| Module | SSL certificates |
| Command name | modifySslCertRequest |
| Use | Use this call to modify the domain validation settings of an SSL certificate order |
| Input |
|
| Output |
- |
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('modifySslCertRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'id' => 5,
'domainValidationMethods' => array(
'openprovider.com' => 'dns',
),
));
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>
<modifySslCertRequest>
<id>28945</id>
<domainValidationMethods>
<openprovider.ru>dns</openprovider.ru>
</domainValidationMethods>
</modifySslCertRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
< code>0</code>
<desc />
<data>
<id>2480</id>
</data>
</reply>
</openXML>