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
Line 15: Line 15:
*'''title'''
*'''title'''
*comment
*comment
-
*'''productId'''
+
*'''[[API Format License Options|productId]]'''
 +
*'''os'''
 +
*version
*'''[[API Format License Options|options]]'''
*'''[[API Format License Options|options]]'''
|- style="vertical-align:top;"
|- style="vertical-align:top;"
Line 29: Line 31:
   ->setAuth(array('username' => 'username', 'password' => 'password'))
   ->setAuth(array('username' => 'username', 'password' => 'password'))
   ->setArgs(array(
   ->setArgs(array(
-
       'productId' => 4,
+
       'productId' => 1,
 +
      'version' => 10,
 +
      'os' => 'windows',
       'title' => 'Linux server APOLLO',
       'title' => 'Linux server APOLLO',
       'options' => array(
       'options' => array(
Line 48: Line 52:
   </credentials>
   </credentials>
   <createLicenseRequest>
   <createLicenseRequest>
-
     <productId>4</productId>
+
     <productId>1</productId>
 +
    <version>10</version>
 +
    <os>windows</os>
     <title>Linux server APOLLO</title>
     <title>Linux server APOLLO</title>
     <options>
     <options>
-
      <keyType>PLESK9WIN</keyType>
 
       <domains>30</domains>
       <domains>30</domains>
       <features>
       <features>

Revision as of 05:22, 25 January 2013

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' => 1,
      'version' => 10,
      'os' => 'windows',
      'title' => 'Linux server APOLLO',
      'options' => array(
        'keyType' => 'PLESK9WIN',
        'domains' => 30,
        'features' => array('POWERPACK'),
        'period' => 12
      )
  ));

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>1</productId>
    <version>10</version>
    <os>windows</os>
    <title>Linux server APOLLO</title>
    <options>
      <domains>30</domains>
      <features>
        <array>
          <item>POWERPACK</item>
        </array>
      </features>
      <period>12</period>
    </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