BCCSA Program API nodejs API client
import LMSClient from '@ikonintegration/bccsa-program-api-client';
const API = new LMSClient({
endpoint: LMSAPIEndpoint,
statsEndpoint: LMSStatsEndpoint,
authorizationToken: '', -- optional, IDM JWT for shared module admins and user routes -- Accepts a function to be called async and return the token
tenantID: '', customerID: ''
});
//Do something
const resp = await API.certification.xyz(ID);
if (!resp || resp.statusCode != 200) {
return ERROR:
} return SUCCESS;
TODO