This article provides some typical examples of how to use the QLM HTTP API to:
- Create license keys
- Check if a license key exists
- Renew the subscription of a license key
When using the QLM HTTP API, you must secure your calls with basic authentication (user/password). This is done by configuring an extension in the QLM Management Console / Manage Keys / 3rd Party extensions. If you're not using the HTTP API in the context of a specific e-commerce provider, we recommend using the QlmAuthenticationProvider extension.
For additional security, you can enable QLM Strict Authentication for each method as needed.
To create a license key, you must use the GetActivationKeyWithExpiryDate method.
Example:
{% code overflow="wrap" %}
http://localhost/QlmLicenseServer/qlmservice.asmx/GetActivationKeyWithExpiryDate?is_productid=1&is_majorversion=1&is_minorversion=0&is_vendor=QlmAuthenticationProvider&is_expduration=10&is_user=qlmdemo&is_pwd=xxx&orderNumber=1234&subscriptionid=5678&is_licensemodel=subscription
{% endcode %}
To check if a license key exists, you must use the RetrieveActivationKeyHttp method.
Example:
{% code overflow="wrap" %}
http://localhost/QlmLicenseServer/qlmservice.asmx/RetrieveActivationKeyHttp?&is_vendor=QlmAuthenticationProvider&is_user=qlmdemo&is_pwd=xxx&is_orderid=1234
{% endcode %}
To renew the subscription of a license key, you must use the RenewSubscriptionHttp method.
Example:
{% code overflow="wrap" %}
http://localhost/QlmLicenseServer/qlmservice.asmx/RenewSubscriptionHttp?is_vendor=QlmAuthenticationProvider&is_user=qlmdemo&is_pwd=xxx&subscriptionid=5678
{% endcode %}