stackexchangeswarup
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -20,5 +20,5 @@ 'use strict'; | ||
*/ | ||
function users (criteria, callback, ids) { | ||
function questions (criteria, callback, ids) { | ||
ids = ids || []; | ||
query('users/' + ids.join(';'), criteria, callback); | ||
query('questions/' + ids.join(';'), criteria, callback); | ||
} | ||
@@ -35,5 +35,29 @@ | ||
// Expose commands. | ||
module.exports.users = users; | ||
/** | ||
* upvote - Casts an upvote on the selected question | ||
* | ||
* @param {Object} criteria contains server key and valid access_token | ||
* @param {Integer} id ID of a question | ||
* @param {Function} callback return results | ||
* @param {Boolean} undo Undo the upvote cast | ||
* @api public | ||
*/ | ||
/** | ||
* downvote - Casts a downvote on the selected question | ||
* | ||
* @param {Object} criteria contains server key and valid access_token | ||
* @param {Integer} id ID of a question | ||
* @param {Function} callback return results | ||
* @param {Boolean} undo Undo the downvote cast | ||
* @api public | ||
*/ | ||
// Expose commands. | ||
module.exports.questions = questions; | ||
module.exports.answers = answers; | ||
module.exports.upvote = upvote; | ||
module.exports.downvote = downvote; | ||
module.exports.users=users; |
{ | ||
"name": "stackexchangeswarup", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Node.js implementation of the stackexchange/stackoverflow API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/stackexchangeswarup", |
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
27272
863