maplageinfo-sdk

2.0.11 • Public • Published

Welcome to Deck 👋 🏖️

npm version Unlicensed

This is the JS client allows to interface tiers site with the MaPlage.info services

🏠 Homepage

Example

const params = {
    scope: 'openid',
    client_id: 'xxxxx',
    grant_type: 'password',
    username: 'xxxxx',
    password: 'xxxxx',
};

( async(params) => {
    console.log(await getCommunities(params));
    console.log(await getBeach(params, 'xxxxx'));
    console.log(await getBeaches(params));
    console.log(await getBeachesByPostalCode(params, 00000));
    console.log(await getBeachesByInseeCode(params, 00000));
    console.log(await getBeachesByCommunity(params, 'xxxxx'));
    console.log(await getAlertsByBeachId(params, 'xxxxx'));
    console.log(await getAlertById(params, 'xxxxx'));
    console.log(await getAlerts(params));
})(params);

Author

👤 MaPlage.info

📝 License

Copyright © 2022 MaPlage.info.

This project is unlicensed.

Package Sidebar

Install

npm i maplageinfo-sdk

Weekly Downloads

1

Version

2.0.11

License

UNLICENSED

Unpacked Size

49.4 kB

Total Files

3

Last publish

Collaborators

  • bernard.redares