osservaprezzi-carburanti-node
v1.1.0
Published
Osservaprezzi carburanti async/await API wrapper. Developed in TypeScript, typed interfaces for all API responses.
Downloads
43
Maintainers
Readme
Osservaprezzi carburanti node
Osservaprezzi carburanti async/await axios API wrapper. Developed in TypeScript complete with documentation and typed interfaces for all API responses.
Getting started
Installation
Using npm:
$ npm install osservaprezzi-carburanti-node
or using yarn:
$ yarn add osservaprezzi-carburanti-node
Usage
import { FuelsApiClient } from 'osservaprezzi-carburanti-node'
const client = new FuelsApiClient();
(async () => {
const searchCriteria: SearchByZoneCriteria = {
points: [
{ lat: 42.32843626674558, lng: 12.188716303785915 },
{ lat: 42.389322963743865, lng: 12.37136400886404 },
{ lat: 42.31726730642802, lng: 12.44277514167654 },
],
fuelType: FuelType.ALL,
refuelingMode: RefuelingMode.ALL,
priceOrder: 'asc',
};
const searchResponse = await client.search.byZone(searchCriteria);
console.log(searchResponse);
})();
Licenses
This projected is licensed under the MIT license. For additional details see LICENSE.