Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 775 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 775 Bytes

saavn-api

Ready to integrate saavn api for musc downloading and listeniing

Usage

  1. Declare the fetch oject, attach the JsaListener
class Sample implements JsaListener {

  // this refers to the instance of the JsaListener
  JsaFetch fetch = new JsaFetch(this);
  
}
  1. Call methods to fetch data based on query
String myQuery = "something good";

// for songs
fetch.songs(myQuery);

//for albums
fetch.albums(myQuery);
  1. Implements the methods of the JsaListener
@Override
public void setSongs(List<Music> musics) {
  // data from fetch
}

@Override
public void setAlbums(List<Album> albums) {
  // data from fetch
}
  1. Music and Album Objects
// both objects have properties as public so not getters or setters