@drippy-music/soundcloud-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -19,2 +19,8 @@ declare class SoundCloud { | ||
/** | ||
* Get any playlist metadada by given id | ||
* @param playlist_id The playlist's unique id | ||
*/ | ||
getPlaylist(playlist_id: string): Promise<object>; | ||
/** | ||
* Get any track metadada by given id | ||
@@ -21,0 +27,0 @@ * @param track_id The track's unique id |
@@ -22,2 +22,10 @@ const axios = require('axios').default; | ||
async getPlaylist(playlist_id) { | ||
const res = await axios.get(`/playlists/${playlist_id}`, { | ||
baseURL: api_url, | ||
params: { client_id: this.client_id } | ||
}); | ||
return res.data; | ||
} | ||
async getTrack(track_id) { | ||
@@ -24,0 +32,0 @@ const res = await axios.get(`/tracks/${track_id}`, { |
{ | ||
"name": "@drippy-music/soundcloud-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "SoundCloud RESTful API for Node.JS", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"deploy": "npm publish --access public" | ||
}, | ||
@@ -11,0 +11,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4969
83
0