0.0.3 • Published 5 years ago
awb-api-wrapper v0.0.3
awb-api-wrapper
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' } ]