WHY AM I GETTING AN UNAUTHORISED ERROR USING THE XAPI?
It’s likely that you’ve either misconfigured your “Client” in Learning Locker or you’re using an incorrect “Authorization” header. To correctly configure your Client and use the correct Authorization header, we recommend that you firstly follow our documentation for creating a “Store” in Learning Locker. Creating a Store will automatically create a new Client that is enabled with the correct scopes and associated to the Store you created. Therefore, once you’ve created a Store, go to Settings > Clients and find the new Client. The new Client will have a “Basic auth” token which you can use as the value for your “Authorization” header in any HTTP requests to the xAPI (be sure to prepend “Basic “ to the start of the token).
Learning Locker and the Squirrel logo are trademark of Learning Pool 2020 | Learning Locker is licensed under GPL 3.0.