soundcloud-search-core
v1.0.5
Published
**Usage** ```js var scSearch = new (require("soudcloud-search-core"))("YourClientID");
Downloads
8
Maintainers
Readme
Usage
var scSearch = new (require("soudcloud-search-core"))("YourClientID");
var resouls = await scSearch.tracks("<query(string)>", <limit(number)>); // resoults is array of objects including info about tracks found
var resouls = await scSearch.playlists("<query(string)>", <limit(number)>); // resoults is array of objects including info about playlists found
var resouls = await scSearch.users("<query(string)>", <limit(number)>); // resoults is array of objects including info about users found
var resouls = await scSearch.nofilter("<query(string)>", <limit(number)>); // resoults is array of objects including info about playlists and tracks found
var resouls = await scSearch.any("<query(string)>", <limit(number)>); // resoults is array of objects including info about playlists, tracks and users found
var track = await scSearch.getTrack("TrackID"); // Object with info including info about track
var playlist = await scSearch.getPlaylist("PlaylistID"); // Object with info including info about playlist
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
})
scSearch.getTrack("TrackID", resoults => {
// Object with info including info about track
})
scSearch.getPlaylist("PlaylistID", resoults => {
// Object with info including info about playlist
});