The documentation of the Go client SDK
examples/example_activate
directory (the repo link: https://github.com/Cryptolens/cryptolens-golang/tree/go_mod)
We start by importing the library with:
token
need to be changed to a valid access token for your account. Access tokens can be created at https://app.cryptolens.io/User/AccessToken/. In order to be able to use the KeyActivate()
function the token needs to have the Activate
scope.publicKey
for your account can be found when logged in on Cryptolens.io from the menu in the top-right corner (“Hello !”) and then Security Settings. Copy paste the value from the Public key field.ProductId
can be found at the page for the corresponding product at https://app.cryptolens.io/Product.Key
is the license key string, and would in most cases be entered by the user of the application in some application dependent manner.MachineCode
is an optional argument allowing you to provide an identifier for which device the application is running on, or something with a similar purpuse.