Note, currently only the activate method from the Web API is supported.
examples/example_activate directory (the repo link: https://github.com/Cryptolens/cryptolens-golang/tree/go_mod)
We start by importing the library with:
- The
tokenneed 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 theKeyActivate()function the token needs to have theActivatescope. - The correct value for
publicKeyfor your account can be found when logged in on Cryptolens.io by opening Account Security from the account menu. Copy paste the value from the RSA Public Key field under License Signing Keys. - The
ProductIdcan be found at the page for the corresponding product at https://app.cryptolens.io/Product. - The
Keyis the license key string, and would in most cases be entered by the user of the application in some application dependent manner. - The
MachineCodeis an optional argument allowing you to provide an identifier for which device the application is running on, or something with a similar purpuse.