0.0.1 • Published 10 years ago
youtube-video-status v0.0.1
youtube-video-status
gotcha youtube video status without creaking
Note
- public (defined by YouTube) ->
accessible - unlisted (defined by YouTube) ->
accessible - private (defined by YouTube) ->
private - deleted anyway ->
unavailable - not exist ->
unavailable - else ->
unknown
Installation
$ npm install youtube-video-status --saveExample
ES5
var video = require('youtube-video-status');
video.status('VIDEO_ID').then(function (status) {
var igotcha = status;
console.log(igotcha);
});ES6
import video from 'youtube-video-status';
video.status('VIDEO_ID').then((status) => {
const igotcha = status;
console.log(igotcha);
});0.0.1
10 years ago