License service API
From PowerFolder Wiki
Contents |
Preface
This article describes the API of the RESTful License credit system web service. A PowerFolder is account is required to connect to this web service via BASIC authentication.
Base URL
The URL of the service in https://access.powerfolder.com/service/license
At least one parameter called "action" must be passed to this URL.
Action: testConnection
For checking the availability of the service. Result: The text "SUCCESS".
| Parameter | Description |
|---|---|
| action | Fix "testConnection " |
Example: https://access.powerfolder.com/service/license?action=testConnection
Action: getCredits
Retrieves the current amount of (micro) credits.
Result: The number of credits available, e.g. "1337"
| Parameter | Description |
|---|---|
| action | Fix "getCredits" |
Example: https://access.powerfolder.com/service/license?action=getCredtis
Action: generateLicenseKey
Generates a license key.
Result: The license key CODE as plain/text.
| Parameter | Description |
|---|---|
| action | Fix "generateLicenseKey" |
| The email address to issue the key for | |
| orderNumber | The order number |
| nComputers | The number of computers the key is valid for |
| type | Needs to be fix "PRO" |
| gbSpace | (Optional) The amount of space in gigabytes to managed local with the key |
| validFrom | The date the key is valid from. format: yyyy-MM-dd |
| validTo | The date the key is valid to. format: yyyy-MM-dd |