@drippy-music/soundcloud-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -25,6 +25,6 @@ declare class SoundCloud { | ||
/** | ||
* Get any track metadada by given id | ||
* @param track_id The track's unique id | ||
* Get tracks metadada by given ids | ||
* @param tracks The track id list | ||
*/ | ||
getTrack(track_id: string): Promise<object>; | ||
getTracks(...tracks: string[]): Promise<object>; | ||
@@ -31,0 +31,0 @@ /** |
@@ -30,6 +30,6 @@ const axios = require('axios').default; | ||
async getTrack(track_id) { | ||
const res = await axios.get(`/tracks/${track_id}`, { | ||
async getTracks(...tracks) { | ||
const res = await axios.get('/tracks', { | ||
baseURL: api_url, | ||
params: { client_id: this.client_id } | ||
params: { client_id: this.client_id, ids: tracks } | ||
}); | ||
@@ -36,0 +36,0 @@ return res.data; |
{ | ||
"name": "@drippy-music/soundcloud-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "SoundCloud RESTful API for Node.JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4968