0.0.3 • Published 2 years ago

insecam-api v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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