1.1.1 • Published 4 years ago

wilma v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago