Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travelbug

A CommonJS module for retrieving music playlists and/or TV shows associated with a particular city, state or country.

Technical Details

A CommonJS module written in ES6 that exposes two public methods: getPlaylists and getShows. Each method returns a Promise, and if they resolve with a 200 status from the server, an array of objects containing the playlists and/or TV shows is returned.

Basic Usage

const Travelbug = require('travelbug');

/**
* Travelbug accepts two parameters:
* @place (string) REQUIRED => A city, state or country
* @API_KEY (string) OPTIONAL => If requesting a TV show, you must provide a Guidebox API key
**/

Travelbug.getPlaylists('Paris').then( (data) => { console.log(data) });
Travelbug.getShows('Paris', 'API_KEY').then( (data) => { console.log(data) });

About

A CommonJS module for retrieving music playlists and/or TV shows associated with a particular city, state or country

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages