aerials
v0.1.0
Published
Get a random aerial video à la Apple TV.
Downloads
6
Readme
Aerial
Get a random aerial video à la Apple TV.
Installation
npm i --save aerials
var aerials = require('aerials')
Usage
options
- video_url — string (ie. 'b4-3')
get(options, callback)
A random aerial video
aerials.get(function (err, aerial) {
if (err) throw err
console.log('random aerial:', aerial)
})
A random aerial video of San Franscisco at night
aerials.get({ 'city': 'San Francisco', 'timeOfDay': 'night' }, function (err, aerial) {
if (err) throw err
console.log('random aerial in San Francisco at day:', aerial)
})
The best aerial video
aerials.get('b4-3', function (err, aerial) {
if (err) throw err
console.log('best aerial:', aerial)
})
options
- id — string (ie. 'b4-3')
- city — string (ie. 'San Francisco')
- timeOfDay — string (either 'day' or 'night')
License
MIT