API Module SSL generateOtpTokenSslCertRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Using PHP class)
Line 33: Line 33:
     <password>password</password>
     <password>password</password>
   </credentials>
   </credentials>
-
   <modifySslCertRequest>
+
   <generateOtpTokenSslCertRequest>
     <id>5</id>
     <id>5</id>
-
    <domainValidationMethods>
+
   </generateOtpTokenSslCertRequest>
-
      <array>
+
-
        <item>
+
-
          <hostName>openprovider.com</hostName>
+
-
          <method>dns</method>
+
-
        </item>
+
-
      </array>
+
-
    </domainValidationMethods>
+
-
   </modifySslCertRequest>
+
  </openXML>
  </openXML>

Revision as of 07:54, 2 February 2017

Contents

Module SSL certificates > Generate Otp Token

Module SSL certificates
Command name generateOtpTokenSslCertRequest
Use Use this call to get one-time token to get end-user access to SSL certificate order in the SSL Panel
Input
  • id - order Id in the OP system

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('generateOtpTokenSslCertRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'id' => 5,
  ));

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>
  <generateOtpTokenSslCertRequest>
    <id>5</id>
  </generateOtpTokenSslCertRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <id>2480</id>
    </data>
  </reply>
</openXML>
Views
Personal tools