API License Module createPleskLicenseRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module Licenses > Create License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Licenses |- style="background-color:#EEEEEE;" |'''Command nā¦') |
|||
| Line 16: | Line 16: | ||
*comment | *comment | ||
*'''productId''' | *'''productId''' | ||
| - | *'''options''' | + | *'''[[API Format License Options|options]]''' |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Output''' | |'''Output''' | ||
Revision as of 11:08, 15 February 2011
Contents |
Module Licenses > Create License
| Module | Licenses |
| Command name | createLicenseRequest |
| Use | Order a new license |
| Input |
|
| Output |
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('createLicenseRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'productId' => 4,
'title' => 'Linux server APOLLO',
'options' => array(
'keyType' => 'PLESK9WIN',
'domains' => 30,
'features' => array('POWERPACK'),
'period' => 12
)
));
Raw XML
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<createLicenseRequest>
<productId>4</productId>
<title>Linux server APOLLO</title>
<options>
<keyType>PLESK9WIN</keyType>
<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>