Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubeau-api

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubeau-api

hubeau api wrapper in javascript

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

HUBEAU API wrapper

HUBEAU API wrapper JS.
Infos sur l'API HUBEAU : https://hubeau.eaufrance.fr/page/apis
Travail en cours...

Installation

yarn add hubeau-api

ou

npm install --save hubeau-api

ensuite importation de la dépendance :

import HubeauApi from 'hubeau-api';
const hubMedApi = new HubeauApi();

ou

const HubeauApi = require('hubeau-api');
const hubMedApi = new HubeauApi();

Commandes disponibles

Etat piscicole

documentation api : https://hubeau.eaufrance.fr/page/api-poisson

Code espèce poisson

async function code_espece_poisson() {
    const params={
        code: "ABL",
        fields: "",
        page: 1,
        size: 1,
    }
    try {
        const results = await hubeauApi.etatPiscicole.codeEspecePoisson(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

async function code_espece_poisson_csv() {
    const params={
        code: "ABL",
        fields: "",
        page: 1,
        size: 1,
    }
    try {
        const results = await hubeauApi.etatPiscicole.codeEspecePoissonCsv(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

Lieux pêche

async function lieux_peche() {
    const params = {
        code_espece_poisson: 'ABL',
        bbox: [1.6194, 47.7965, 2.191, 47.9988],
    };
    try {
        const results = await hubeauApi.etatPiscicole.lieuxPeche(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}
async function lieux_peche_csv() {
    const params = {
        code_espece_poisson: 'ABL',
        bbox: [1.6194, 47.7965, 2.191, 47.9988],
    };
    try {
        const results = await hubeauApi.etatPiscicole.lieuxPecheCsv(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

Poissons

async function poissons() {
    const params = {
        code_espece_poisson: ['ABL', 'ECR', 'ABI'],
        page: 1,
        fields: ['code_station', 'localisation'],
    };
    try {
        const results = await hubeauApi.etatPiscicole.poissons(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

async function poissons_csv() {
    const params = {
        code_espece_poisson: ['ABL', 'ECR', 'ABI'],
        page: 1,
        fields: ['code_station', 'localisation'],
    };
    try {
        const results = await hubeauApi.etatPiscicole.poissonsCsv(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

Indicateurs services

communes

async function communes() {
    const params = {
        annee: 2019,
        page: 1,
        type_service: 'AEP',
    };
    try {
        const results = await hubeauApi.indicateursServices.communes(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

async function communesCsv() {
    const params = {
        annee: 2019,
        page: 1,
        type_service: 'AEP',
    };
    try {
        const results = await hubeauApi.indicateursServices.communesCsv(params);
        console.log(results);
    } catch (error) {
        console.log(error);
    }
}

Keywords

FAQs

Package last updated on 13 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc