Socket
Socket
Sign inDemoInstall

happi-dev-sdk

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happi-dev-sdk

Happi.dev SDK


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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 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

Keywords

FAQs

Package last updated on 10 Nov 2019

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