This article uses an old version of the API to create a license. We are currently updating it and a new version will be available shortly. In meantime, we recommend to check out Create Key method documentation.
Being able to create new license keys through external applications is important if you want to integrate Cryptolens with an external providers (eg. for payments, distribution etc).
For example, if you already have a web store in place and want to keep using it, you can still use Cryptolens for eg. software licensing.
This article describes the way you can generate keys by a simple web request through another website or an application.
The goal is to automate software distribution by allowing your customers to receive valid license keys upon successful payments.
Enabling Key Generation
- First, log in to your account so that you can access you security page: https://app.cryptolens.io/User/Security.
- Press Allow external key generation.
- (later) Copy the Private Key.
Once this feature is activated (step 2), any request that is in the correct format with the private key (step 3) will be able to generate one key in a given product, if the product is set to Is Public.
Generating a Key
Once you have enabled key generation, you are able to generate a new key. The simplest way is to assign all parameters (can be found here) to get a link that will return the specific key you want. A quick way to get that link without actually reading the Web API documentation is as following:
- Select the product: https://app.cryptolens.io/Product
- Press Create New Key
- Fill in all the parameters (such as set time, features, etc.)
- Press on the </> button.
- Copy the link in the textbox.
Done! If you try to visit the link, you will notice that a new key will be returned. If you prefer to get a json object instead, please add &json=true .