monkeylearn
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -221,2 +221,12 @@ 'use strict'; | ||
Classification.prototype.detail = function(module_id, category_id, callback, sleep_if_throttled) { | ||
sleep_if_throttled = typeof sleep_if_throttled !== 'undefined' ? sleep_if_throttled : true; | ||
var url = this.endpoint + module_id + '/categories/' + category_id + '/'; | ||
var promise = Q.all([this.makeRequest(url, 'GET', null, sleep_if_throttled)]); | ||
promise = promise.then(function (response_array) { | ||
return new MonkeyLearnResponse(response_array); | ||
}); | ||
return promise.nodeify(callback); | ||
}; | ||
Categories.prototype.create = function(module_id, name, parent_id, callback, sleep_if_throttled) { | ||
@@ -223,0 +233,0 @@ var data = { |
{ | ||
"name": "monkeylearn", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Official Node client for the MonkeyLearn API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21966
437