/jiosavan-api

A promise-based small Package built with typescript to interact with jiosavan API.

Primary LanguageTypeScript

Jio Savan

npm i jiosavan
    or 
yarn add jiosavan

Common Js

const jiosavan = require('jiosavan')

ES6 Import

import jiosavan from "jiosavan"

Async/Await

 const songDetail = await jiosavan.getSong(id,lyrics)

.then() Prmoise

  jiosavan
    .getSong(id,lyrics)
    .then((resp)=>console.log(resp))

Important Methods

For Song,Album,Playlist,Lyrics

To Get The song Details

   const id = "FKUE0Xj4"
   const lyrics= true
   const songDetail = await jiosavan.getSong(id,lyrics)

To Get the Album details

   const id = "1148073"
   const lyrics= true
   const albumDetail = await jiosavan.getAlbum(id,lyrics)

To Get the Playlist details

   const id = "50808"
   const lyrics= true
   const playListDetail = await jiosavan.getPlaylist(id,lyrics)

To Get the Lyrics

   const id = "FKUE0Xj4"
   const songLyrics = await jiosavan.getLyrics(id)

For Searching

To search All data

   const query = "Jai+ho"
   const songLyrics = await jiosavan.search(query)

To search songs

   const query = "Jai+ho"
   const songLyrics = await jiosavan.searchSongs(query)

To search Albums

   const query = "Jai+ho"
   const songLyrics = await jiosavan.searchAlbums(query)

To search Artist

   const query = "Arijit+Singh"
   const songLyrics = await jiosavan.searchArtist(query)

To search Playlist

   const query = "Jai+Ho"
   const songLyrics = await jiosavan.searchPlaylists(query)