Comparing version 1.2.0 to 1.3.0
@@ -48,2 +48,35 @@ | ||
/** | ||
* All available options for querying partner artists. | ||
* | ||
* @type {Array} | ||
* @private | ||
*/ | ||
Partner.artists = [ | ||
'artist_id', | ||
'published', | ||
'sort' | ||
]; | ||
/** | ||
* Get all artists for the partner user. | ||
* | ||
* @param {Object} options Optional options. | ||
* @param {function} fn The callback. | ||
* @returns {Assign} | ||
* @api public | ||
*/ | ||
Partner.prototype.artists = function (args) { | ||
args = this.api.args(arguments); | ||
var options = args.options || {}, | ||
partner = args.str || options.partner; | ||
return this.send( | ||
['partner', partner, 'artists.json'], | ||
this.api.options(options, Partner.artists), | ||
args.fn | ||
); | ||
}; | ||
/** | ||
* All available options for querying artworks. | ||
@@ -50,0 +83,0 @@ * |
{ | ||
"name": "artsy", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A Node.js client for the Artsy API", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
39821
920