osservaprezzi-carburanti-node
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Osservaprezzi carburanti node

Npm version install size Support version GitHub top language GitHub license GitHub issues GitHub Workflow Status Github last commit

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.

Package Sidebar

Install

npm i osservaprezzi-carburanti-node

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

46 kB

Total Files

42

Last publish

Collaborators

  • pater999