Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.16 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.16 KB

Usage

var scSearch = new require("soudcloud-search-core")("YourClientID");

var resouls = await scSearch.tracks("<query(string)>", <limit(number)>);
var resouls = await scSearch.playlists("<query(string)>", <limit(number)>);
var resouls = await scSearch.users("<query(string)>", <limit(number)>);
var resouls = await scSearch.nofilter("<query(string)>", <limit(number)>);
var resouls = await scSearch.any("<query(string)>", <limit(number)>);

OR

scSearch.tracks("<query(string)>", <limit(number)>, resoults => {
  // resoults is array of objects including info about tracks found
})

scSearch.playlists("<query(string)>", <limit(number)>, resoults => {
  // resoults is array of objects including info about playlists found
})

scSearch.users("<query(string)>", <limit(number)>, resoults => {
  // resoults is array of objects including info about users found
})

scSearch.nofilter("<query(string)>", <limit(number)>, resoults => {
  // resoults is array of objects including info about playlists and tracks found
})

scSearch.any("<query(string)>", <limit(number)>, resoults => {
  // resoults is array of objects including info about playlists, tracks and users found
})