Skip to content
Simple, robust Happi.dev API client
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
services
README.md
cache.js
index.js
package.json
request.js
test.js

README.md

Important

Status: unstable Don't use it in production yet

Happi.dev SDK

Simple, robust Happi.dev API client

Table of Contents

  1. Installation
  2. Modules
  3. Cache

Installation

npm install https://github.com/jodacame/happi-dev-sdk.git --save

Modules

Happi bring new value to your company by driving innovation in many ways. Since APIs are being utilized every day.

Music

It provides free api to discover millions song, artist, albums, covers and lyrics

Methods

Search

Search artist or tracks

search(query, limit, type[artist|tracks, default:track])

Artist

Get artist information

artist(id_artist)

Albums

Get albums from artist

albums(id_artist)

Tracks

Get tracks from album

tracks(id_artist, id_album)

SmartPlaylist

Generate smart playlist using artist seed

smartPlaylist(id_artist, limit)

AcrosticPlaylist

Generate a acrostic playlist using artist seed and first track letter

acrostic(id_artist, message[Max 100 Charactes])

Lyrics

Get track lyrics

lyrics(id_artist, id_album, id_track)

Usage

More info in https://happi.dev/

var happi = require("happi-dev-sdk");

happi.init('YOUR_API_KEY');

var query = 'Aerosmith Jade';

happi.music.search(query, 40).then(response => {
    console.log(response);
}).catch(err => {
    console.log("Error",err);
});

Cache

Ensable or disable cache

// Enable
happi.cache.on();
// Disable
happi.cache.off();

TODO

  • Redis cache
  • Documentation
  • API: Exchange Rate
  • API: IP Address
  • API: Key/Value store
  • API: Password Generator
  • API: QR Code
You can’t perform that action at this time.