In the code example on the previous page, we had a variable called
This is also called an access token.
The idea behind access tokens is to allow you to:
- identify yourself with SKM (authentication) - let SKM know that you are you
- make sure only desired permission is given to something (authorization) - eg. method scope, product, etc.
Using an access token, you can specify the methods you want to be able to call, the product you want to use, the license key, and optionally feature you want to change. You can read more about them here.
Creating a new Access Token
In order to create an access token with the permission required by the previous example:
- Go to ‘Your account name’ (right corner) > ‘Access Token’.
- Click on ‘Create new Access Token’. You will now be on this page.
- Enter a name, such as “GetKey AccessToken”.
- Check the ‘Get Key’ box (under LicenseKey)
- Select the ‘Product Lock’ to be the name of your application.
- Press ‘Create an Access Token’.
- Copy the access token and replace our token with yours.