@unclesamulus/ebird-api
v0.0.0
Published
Damn small node.js library to deal with v2 eBird API
Downloads
4
Readme
ebird.js
Damn small node.js library to deal with v2 eBird API.
Installation
npm install --save ebirdUsage
First, get an API key from eBird.
You may use a .env file in your project's root, to store it (don't forget to add it to .gitignore):
# .env
EBIRD_API_KEY=secretThen you could use dotenv package to retrieve your credentials from this file:
npm install dotenvrequire('dotenv').config()
const ebird = require('ebird')(process.env.EBIRD_API_KEY);Endpoints
data/obs
data/obs/{{regionCode}}/recent
ebird.data.obs.in('FR')().then((data) => {
console.log(data);
});NB. The documentation needs further work
