1.1.1 • Published 5 years ago
wilma v1.1.1
nodeWilma
This is a node application, that gets information and schedule from wilma
###This is not an official package
##Installation
> npm i wilma###Usage
To use all of the functions you have to get SID with LoginWilma()
wilma = require('wilma');
SID = LoginWilma('Username', 'Password');##Functions
###LoginWilma() Gets a SID (session ID) from wilma API. This is used to authenticate your self elsewhere
wilma = require('wilma');
SID = LoginWilma('Username', 'Password');###GetMessages Gets a list of all receaved messages in sorting by latest
wilma = require('wilma');
messageList = await GetMessages(/*SID*/);###GetMessageBody() Gets all of the info of a message
wilma = require('wilma');
message = await GetMessageBody(/*messageID*/,/*SID*/)###GetSchedule Gets current months schedule
wilma = require('wilma');
schedule = await GetSchedule(/*SID*/);##Examples
wilma = require('wilma');
async function RUN(){
    //Login
    SID = await LoginWilma('Username', 'Password');
    //Get messages
    messageList = await GetMessages(SID);
    //Get first message
    message = await GetMessageBody(messageList[0].Id, SID);G    //Print the body of the message
    console.log(message.mainMessageBody);
}
RUN();##Contribute Github