# srce-issp-client

> Client for accessing ISSP Student information: https://issp.srce.hr/

Latest version **1.0.7** (published 2017-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install srce-issp-client
pnpm add srce-issp-client
yarn add srce-issp-client
bun add srce-issp-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2017-09-01 |
| First published | 2017-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Bartul Kovacic |
| Maintainers | pentanos |

## Links

- npm: https://www.npmjs.com/package/srce-issp-client
- Repository: https://github.com/BKova/srce-issp-client
- Homepage: https://github.com/BKova/srce-issp-client#readme
- Issues: https://github.com/BKova/srce-issp-client/issues
- npm.io page: https://npm.io/package/srce-issp-client

## Dependencies (9)

- [pify](https://npm.io/package/pify.md) ^3.0.0
- [debug](https://npm.io/package/debug.md) ^3.0.0
- [fecha](https://npm.io/package/fecha.md) ^2.3.1
- [fetcha](https://npm.io/package/fetcha.md) 0.0.0
- [minidom](https://npm.io/package/minidom.md) ^1.0.0
- [request](https://npm.io/package/request.md) ^2.81.0
- [date-fns](https://npm.io/package/date-fns.md) ^1.28.5
- [url-join](https://npm.io/package/url-join.md) ^2.0.2
- [browser-request](https://npm.io/package/browser-request.md) ^0.3.3

## Recent versions

- 1.0.7 (latest) — 2017-09-01
- 1.0.6 — 2017-09-01
- 1.0.5 — 2017-08-18
- 1.0.4 — 2017-08-17
- 1.0.3 — 2017-08-10

## README

# srce-issp-client

> Client for accessing Student information on [ISSP](http://issp.srce.hr).

## Install 

```bash
$ npm install srce-issp-client
```
## Usage
```js
const isspClient = require('srce-issp-client');
const client = new isspClient();
```
##### Client#login(username: string, password: string) => Promise<Client>
* Use to login client. On authentication fail error is thrown. 
* Promise returns client object and appends user info to client.user.
```js
client.login('AAI@Edu username', 'AAI@Edu password');
```
##### Client#getReceipts(maxReceiptAgeInDays: number) => Promise<Array>
* Get all receipts that are not older that `maxReceiptAgeInDays` days. 
* Promise returns receipts array.
```js
client.getReceipts(365);
```
##### Client#getReceiptDetails(receipt: object) => Promise<Object>
* Get details of `receipt`.
* Promise returns receipt details object.
```js
client.getReceiptDetails(receipt);
```
##### Client#logout() => Promise
* Perform logout action.
* Promise returns nothing.
```js
client.logout());
```
## License
MIT © Bartul Kovacic

---
_Source: https://npm.io/package/srce-issp-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
