# awb-api-wrapper

> A simple wrapper around the AWB public API

Latest version **0.0.3** (published 2019-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install awb-api-wrapper
pnpm add awb-api-wrapper
yarn add awb-api-wrapper
bun add awb-api-wrapper
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-02-22 |
| First published | 2019-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lukas Langen |
| Maintainers | andrail |

## Links

- npm: https://www.npmjs.com/package/awb-api-wrapper
- Repository: https://github.com/Andrail/awb-api-wrapper
- Homepage: https://github.com/Andrail/awb-api-wrapper#readme
- Issues: https://github.com/Andrail/awb-api-wrapper/issues
- npm.io page: https://npm.io/package/awb-api-wrapper

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.3.0

## Recent versions

- 0.0.3 (latest) — 2019-02-22
- 0.0.2 — 2019-02-20
- 0.0.1 — 2019-02-20

## README

# awb-api-wrapper

![License](https://img.shields.io/npm/l/awb-api-wrapper.svg)
![Version](https://img.shields.io/npm/v/awb-api-wrapper.svg)

A little wrapper for the [AWB API](https://offenedaten-koeln.de/anfragen/m%C3%BCllabholungstermine-der-abfallwirtschaftsbetriebe-api).

## Installation

Use npm:

> npm install awb-api-wrapper

## Example Usage

Here a little example with the address of the Cologne Cathedral:

```javascript
import AwbApiWrapper from 'awb-api-wrapper';

let config = {
    streetnumber: 4,
    streetcode: 745,
    startyear: 2019,
    endyear: 2019,
    startmonth: 1,
    endmonth: 1
};

let wrapper = new AwbApiWrapper(config);

wrapper.get().then((response) => {
    console.log(res);
});
```

The output should be like this:

```javascript
[ TrashPickup { date: 2019-02-01T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-05T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-07T00:00:00.000Z, type: 'blue' },
  TrashPickup { date: 2019-02-08T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-12T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-15T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-19T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-21T00:00:00.000Z, type: 'blue' },
  TrashPickup { date: 2019-02-22T00:00:00.000Z, type: 'grey' },
  TrashPickup { date: 2019-02-26T00:00:00.000Z, type: 'grey' } ]
```

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