disconnect
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -0,1 +1,5 @@ | ||
0.7.1 / 2016-01-26 | ||
================== | ||
* Added `database().labelReleases()` function | ||
0.7.0 / 2016-01-25 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -87,3 +87,20 @@ 'use strict'; | ||
}; | ||
/** | ||
* Get label release data | ||
* @param {(number|string)} label - The Discogs label ID | ||
* @param {object} [params] - Paging params | ||
* @param {function} [callback] - Callback function | ||
*/ | ||
database.labelReleases = function(label, params, callback){ | ||
var path = '/labels/'+label+'/releases'; | ||
if((arguments.length === 2) && (typeof params === 'function')){ | ||
callback = params; | ||
}else{ | ||
path = util.addParams(path, params); | ||
} | ||
client.get(path, callback); | ||
}; | ||
/** | ||
@@ -90,0 +107,0 @@ * Get an image |
{ | ||
"name": "disconnect", | ||
"description": "A full featured Discogs API v2.0 client library", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"keywords": ["discogs", "api", "client", "oauth"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bartve/disconnect", |
@@ -149,3 +149,3 @@ ## About | ||
// Data contains the raw binary image data | ||
require('fs').writeFile(file, data, 'binary', function(err){ | ||
require('fs').writeFile('/tmp/image.jpg', data, 'binary', function(err){ | ||
console.log('Image saved!'); | ||
@@ -152,0 +152,0 @@ }); |
Sorry, the diff of this file is not supported yet
55841
1226