Comparing version
@@ -186,2 +186,22 @@ 'use strict'; | ||
/** | ||
* Get partner documents for a partner artist by ID | ||
* | ||
* @param {Object} options { partner: str, artist: str } | ||
* @param {Object} options Optional options. | ||
* @param {function} fn The callback. | ||
* @returns {Assign} | ||
* @api public | ||
*/ | ||
Artist.prototype.documents = function (args) { | ||
args = this.api.args(arguments); | ||
var options = args.options || {}; | ||
return this.send( | ||
['partner', options.partner, 'artist', options.artist, 'documents'], | ||
options, | ||
args.fn | ||
); | ||
}; | ||
/** | ||
* Return an artists genome | ||
@@ -188,0 +208,0 @@ * |
@@ -19,2 +19,3 @@ 'use strict'; | ||
* @param {String} str show id | ||
* @param {Object} options { partner: str, show: str } | ||
* @param {Object} options Optional options. | ||
@@ -50,3 +51,3 @@ * @param {function} fn The callback. | ||
* | ||
* @param {String} str show id | ||
* @param {Object} options { partner: str, show: str } | ||
* @param {Object} options Optional options. | ||
@@ -89,5 +90,5 @@ * @param {function} fn The callback. | ||
/** | ||
* Get Installation images for a partner show by ID | ||
* Get documents for a partner show by ID | ||
* | ||
* @param {String} str show id | ||
* @param {Object} options { partner: str, show: str } | ||
* @param {Object} options Optional options. | ||
@@ -94,0 +95,0 @@ * @param {function} fn The callback. |
{ | ||
"name": "artsy", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "A Node.js client for the Artsy API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -27,2 +27,14 @@ var vows = require('vows'), | ||
} | ||
}), | ||
'artist.documents': macros.call({ | ||
partner: 'aca-galleries', | ||
artist: 'faith-ringgold' | ||
}, { | ||
'should return documents from the artist': function (documents) { | ||
assert.isArray(documents); | ||
// | ||
// TODO (indexzero): More asserts. | ||
// | ||
debug('artist.documents', documents); | ||
} | ||
}) | ||
@@ -29,0 +41,0 @@ // |
48244
1.95%1211
2.63%