This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API License Module createPleskLicenseRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Raw XML)
(Using PHP class)
Line 33: Line 33:
       'options' => array(
       'options' => array(
         'version' => 12,
         'version' => 12,
-
         'os' => 'windows',
+
         'type' => 'webHost',
-
         'domains' => 30,
+
         'period' => 12,
-
         'features' => array('POWERPACK'),
+
         'langPacks' => 1,
-
         'period' => 12
+
        'pack' => 'POWERPACK',
 +
         'sites' => 30,
 +
 
       )
       )
   ));
   ));

Revision as of 06:57, 11 April 2017

Contents

Module Licenses > Create License

Module Licenses
Command name createLicenseRequest
Use Order a new license
Input
Output
  • id

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('createLicenseRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
      'productId' => 7,
      'title' => 'Linux server APOLLO',
      'options' => array(
        'version' => 12,
        'type' => 'webHost',
        'period' => 12,
        'langPacks' => 1,
        'pack' => 'POWERPACK',
        'sites' => 30,
      )
  ));

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>
  <createLicenseRequest>
    <productId>7</productId>
    <title>Linux server APOLLO</title>
    <options>
      <version>12</version>
      <type>webHost</os>
      <period>12</period>
      <langPacks>1</langPacks>
      <pack>POWERPACK</pack>
      <sites>30</sites>
    </options>
  </createLicenseRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <id>1446</id>
    </data>
  </reply>
</openXML>
Views
Personal tools