API Module License retrieveLicenseRequest

From Openprovider API documentation

Jump to: navigation, search

Contents

Module Licenses > Retrieve License

Module Licenses
Command name retrieveLicenseRequest
Use Retrieve information about an ordered license
Input
  • id
Output
  • id
  • productId
  • mainKeyType
  • keyNumber
  • title
  • comment
  • status
  • orderDate
  • activeDate
  • expirationDate
  • options

Examples

Using PHP class

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

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>
  <retrieveLicenseRequest>
    <id>1446</id>
  </retrieveLicenseRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <id>1446</id>
      <productId>4</productId>
      <mainKeyType>PLESK9WIN</mainKeyType>
      <keyNumber>PLSK.01489424</keyNumber>
      <title>Linux server APOLLO</title>
      <comment>
      </comment>
      <period>12</period>
      <status>ACT</status>
      <orderDate>2010-12-02 15:01:25</orderDate>
      <expirationDate>2011-12-02 15:01:25</expirationDate>
      <activeDate>2010-12-02 15:01:25</activeDate>
      <options>
        <features>
          <array>
            <item>POWERPACK</item>
          </array>
        </features>
        <domains>30</domains>
        <period>12</period>
        <keyType>PLESK9WIN</keyType>
      </options>
    </data>
  </reply>
</openXML>
Views
Personal tools