@maynoothuniversity/moodle-ws-client
A Moodle Web Services Client
Last updated 6 months ago by bbusschots-mu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @maynoothuniversity/moodle-ws-client 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.1                                ...           latest (6 months ago)

6 Versions

  • 1.1.1                                ...           6 months ago
  • 1.1.0                                ...           7 months ago
  • 1.0.0                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 5
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |