Get License Templates

Returns the list of license templates. A license template allows you to pre-define the parameters that are used when creating a new license. You can read more about them here.

This method is accessed by https://app.cryptolens.io/api/licensetemplate/GetLicenseTemplates

Parameters

Parameter Description Remarks
v Method version. optional. by default, it's 1.

Results

Parameter Description Remarks
LicenseTemplates List of License Template objects. always returned
Result This is either 0(=success) or 1(=error). always returned
Message The message that provides additional information about the result. always returned.

Example results

{"licenseTemplates":[{"id":5,"name":"test","productId":3,"parameters":"{\"ProductId\":3,\"Period\":30,\"F1\":false,\"F2\":false,\"F3\":false,\"F4\":false,\"F5\":false,\"F6\":false,\"F7\":false,\"F8\":false,\"Notes\":null,\"Block\":false,\"CustomerId\":0,\"TrialActivation\":false,\"MaxNoOfMachines\":0,\"AllowedMachines\":null}"},{"id":6,"name":"test222","productId":3645,"parameters":"{\"ProductId\":3645,\"Period\":30,\"F1\":true,\"F2\":true,\"F3\":false,\"F4\":false,\"F5\":false,\"F6\":false,\"F7\":false,\"F8\":false,\"Notes\":null,\"Block\":false,\"CustomerId\":0,\"TrialActivation\":false,\"MaxNoOfMachines\":0,\"AllowedMachines\":null}"},{"id":11,"name":"testv2","productId":3645,"parameters":"[{\"APIMethodName\":\"CreateKey\",\"Parameters\":{\"ProductId\":3645,\"Period\":30,\"F1\":false,\"F2\":false,\"F3\":false,\"F4\":false,\"F5\":false,\"F6\":false,\"F7\":false,\"F8\":false,\"Notes\":null,\"Block\":false,\"CustomerId\":0,\"TrialActivation\":false,\"MaxNoOfMachines\":0,\"AllowedMachines\":null}},{\"APIMethodName\":\"AddDataObjectToKey\",\"Parameters\":{\"Name\":\"cryptolens_features\",\"StringValue\":\"[\\\"ModuleA\\\",[\\\"ModuleB\\\",[\\\"Submodule 1\\\",\\\"Submodule 2\\\"]]]\",\"IntValue\":0,\"CheckForDuplicates\":false,\"ProductId\":3645,\"Key\":\"[key]\"}}]"}],"result":0,"message":null}

Errors

Error
Access denied.
;