Provides an API to interact with the Scormcloud Services.
A very rough and simple implementation of the scormcloud api.
This is work in progress that currently only partially supports 2 of the many services offered. I will be adding more services as they are needed by my company. If you need features or changes faster than i can apply, im happy to make this an open project.
Using these services are fairly easy;
var ScormCloudAPI = require'scormcloud-api';var config = '' 'yourappid' 'yoursecretkey' 'orgin';var serviceProvider = config;var accountService = serviceProvicergetService'account';accountServicegetAccountInformationifrisOkvar accountInfo = rgetData;console.logaccountInfogetFirstName + " " + accountInfogetLastName;elseconsole.log'Request returned: ' + rgetStatus + ' with error: ' + rgetError;;