# ovchip-api

> OV Chipkaart API

Latest version **1.0.1** (published 2017-02-20) · 0 weekly downloads

## Install

```sh
npm install ovchip-api
pnpm add ovchip-api
yarn add ovchip-api
bun add ovchip-api
```

## 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.1 |
| Published | 2017-02-20 |
| First published | 2017-02-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.3.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Bart0110 |
| Maintainers | bart0110 |

## Links

- npm: https://www.npmjs.com/package/ovchip-api
- Repository: https://github.com/OVChip/ovchipapi-node
- Homepage: https://github.com/OVChip/ovchipapi-node#readme
- Issues: https://github.com/OVChip/ovchipapi-node/issues
- npm.io page: https://npm.io/package/ovchip-api

## Dependencies (3)

- [async-q](https://npm.io/package/async-q.md) ^0.3.1
- [request](https://npm.io/package/request.md) ^2.79.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.1.1

## Recent versions

- 1.0.1 (latest) — 2017-02-20
- 1.0.0 — 2017-02-20

## README

# OVApi

An NodeJS API wrapper for the OVChipkaart. 
You can use this wrapper to fetch:
- Your balance
- Cards
- Detailed card information
- Check in points
- Check out points

### Install:
First run ```npm install --save ovchip-api```

Than add ```import OVApi from "ovchip-api"``` 

### Examples:
```javascript
import OVApi from "ovchip-api";

let instance = new OVApi(username, password);

instance.authorize().then(() => { //Logs the user in and makes sure the tokens are all set
	instance.getCards().then((results) => { //Get all the cards attached to the account
		//Display all the transaction today
		instance.getTransactions(results[0]['mediumId']).then(console.log).catch(console.error); 

		//Display detailed card information
		instance.getDetailedCardInfo(results[0]['mediumId']).then(console.log).catch(console.error); 
	}).catch(console.error); //Display errors
}).catch(console.error);
```

--------------------------------------------------------------------------------

**This project and the distribution of this project is not illegal, nor does it violate _any_ DMCA laws. 
The use of this project, however, may be illegal. 
The maintainers of this project do not condone the use of this project for anything illegal, in any state, region, country, or planet. 
_Please use at your own risk_.**

--------------------------------------------------------------------------------

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