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

netflix-roulette

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netflix-roulette

NetflixRoulette API Wrapper Module

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

NetflixRoulette Node.js API

NPM Downloads NPM Version License

A very simple, fully-functional Node wrapper for NetflixRoulette's API that I wrote for some practical experience with Node. Add this module as a dependency in your Node project to access NetflixRoulette with a few easy-to-use functions.

Instructions

###Install

Use npm install netflix-roulette in your Node.js project folder.

This will create a new node_modules folder if one does not already exist. Add it to your dependencies in package.json.

###Require

var NetflixRoulette = require('netflix-roulette');

###Use

The API currently has three parameters, title, actor and director. This module allows you to query any of them through rather intuitive functions. Since it is an open API, you do not need keys or authentication of any sort.

  1. NetflixRoulette.title('Tucker & Dale vs. Evil', callbackFunc(error, data), 2010);
    [year parameter is optional]

  2. NetflixRoulette.actor('Keira Knightley', callbackFunc(error, data));

  3. NetflixRoulette.director('Christopher Nolan', callbackFunc(error, data));

The error value is set only when there is a problem requesting data from the API. Any errors in finding the data will be reported in the data variable with error == null.

Refer to NetflixRoulette's API guide for details on returned data.

Contact

Report any bugs from the Issues section.

If you have any questions, contact me @Antrikshy. You can reach, Andrew, the developer of NetflixRoulette @CodeusaSoftware.

Keywords

FAQs

Package last updated on 10 Oct 2014

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