0.0.3 • Published 5 years ago

awb-api-wrapper v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

awb-api-wrapper

License Version

A little wrapper for the AWB API.

Installation

Use npm:

npm install awb-api-wrapper

Example Usage

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

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:

[ 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' } ]
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago