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
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 theKeyActivate()
function the token needs to have theActivate
scope. - The correct value for
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. - The
ProductId
can be found at the page for the corresponding product at https://app.cryptolens.io/Product. - The
Key
is the license key string, and would in most cases be entered by the user of the application in some application dependent manner. - The
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.