Getting an access token
To get the token (abbreviated as "8...K" in my examples) you login to KTH's Canvas LMS (https://kth.instructure.com) then go to your Account, then Settings page. Near the bottom of the page you will see an large "New access token" button and if you have previously pushed the button you will see earlier tokens you have generated. When you press this button a new access token is generated. Make note of this - as you will need to use it to access Canvas via programs.