srce-issp-client
v1.0.7
Published
Client for accessing ISSP Student information: https://issp.srce.hr/
Downloads
7
Readme
srce-issp-client
Client for accessing Student information on ISSP.
Install
$ npm install srce-issp-client
Usage
const isspClient = require('srce-issp-client');
const client = new isspClient();
Client#login(username: string, password: string) => Promise
- Use to login client. On authentication fail error is thrown.
- Promise returns client object and appends user info to client.user.
client.login('AAI@Edu username', 'AAI@Edu password');
Client#getReceipts(maxReceiptAgeInDays: number) => Promise
- Get all receipts that are not older that
maxReceiptAgeInDays
days. - Promise returns receipts array.
client.getReceipts(365);
Client#getReceiptDetails(receipt: object) => Promise
- Get details of
receipt
. - Promise returns receipt details object.
client.getReceiptDetails(receipt);
Client#logout() => Promise
- Perform logout action.
- Promise returns nothing.
client.logout());
License
MIT © Bartul Kovacic