SOMtoday WISService wrapper for Node
This library provides an easy interface to the SOMtoday WISService.
Installation
npm install somtoday-wisservice
Example usage
'use strict';
const WISServiceClient = require('somtoday-wisservice');
new WISServiceClient({
'portal': 'xxxx', // Portal name, is subdomain without the '-oop' part
'brin': 'XXXX', // 4 character NL BRIN number of the school
'username': 'xxxxxxxx', // Username
'password': 'xxxxxxxxxx' // Password
}, function(err, client) {
if (err) {
console.log('Could not connect: ' + err.message);
return;
}
// View all available calls
// console.log(Object.keys(client));
// Perform a call
client.getLeerling({
leerlingNummer: 12345
}, function(err, result) {
console.log(result);
});
});