0.0.3 • Published 3 years ago
insecam-api v0.0.3
insecam-api
Node.js module for easy access of Insecam.
Setup
npm install insecam-api
Usage
// Import the insecam-api module
const insecam = require("insecam-api");
// Get an array of available manufacturers
insecam.manufacturers.then(console.log);
// Get an array of available countries
insecam.countries.then(console.log);
// Get an array of available place types
insecam.places.then(console.log);
// Get IDs of the six newest added cameras
insecam.new.then(console.log);
// Get IDs of the six highest rated cameras
insecam.rating.then(console.log);
// Get six camera IDs filtered by manufacturer
insecam.manufacturer("Android-Ipwebcam").then(console.log);
// Get six camera IDs filtered by country
insecam.country("US").then(console.log);
// Get six camera IDs filtered by place type
insecam.place("City").then(console.log);
// Get details for a specific camera by ID
insecam.camera("255653").then(console.log);
To-Do
- Search for cities
- Get cameras by city
- Search for timezones
- Get camera by timezone
- Pagination for cameras
- Proper documentation
- Error handling