1.1.3 • Published 3 years ago

@maynoothuniversity/moodle-ws-client v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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/.

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago