Package Exports
- @maynoothuniversity/moodle-ws-client
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@maynoothuniversity/moodle-ws-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@maynoothuniversity/moodle-ws-client
A Moodle Web Services Client for NodeJS.
Example
// import the module
const MoodleWSClient = require('@maynoothuniversity/moodle-ws-client');
// instantiate a client
let myMoodle = new MoodleWSClient(
'https://myServer.com/', // base URL of Moodle instance
'1234567890ABCDEF1234567890ABCDEF' // Web Service token
);
// submit a query to the web service (returns a promise of the data)
myMoodle.submit(
'GET', // HTTP method
'core_webservice_get_site_info' // web service function name
).then(function(data){
console.log(data);
});
API Documentation
Full API documentation available at https://bbusschots-mu.github.io/moodle-ws-client/.