Comparing version 0.1.2 to 0.1.3
@@ -93,2 +93,27 @@ 'use strict'; | ||
// Post multiple values to multiple streams | ||
// | ||
// This method allows posting multiple values to multiple streams | ||
// belonging to a feed. All the streams should be created before | ||
// posting values using this method. The `values` parameters is a | ||
// hash with the following format: | ||
// | ||
// { | ||
// "stream-name-1": [ | ||
// { "at": <Time in ISO8601>, "value": x }, | ||
// { "value": y } | ||
// ], | ||
// "stream-name-2": [ ... ] | ||
// } | ||
// | ||
// If the `at` attribute is missing the the current time of the | ||
// server, in UTC, will be used. | ||
Feeds.prototype.postMultiple = function(id, values, cb) { | ||
return this.client.post(helpers.url("/feeds/%s", id), { | ||
headers: { "Content-Type": "application/json" }, | ||
params: { values: values } | ||
}, cb); | ||
}; | ||
module.exports = Feeds; |
{ | ||
"name": "m2x", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "AT&T M2X API client for node.js", | ||
@@ -5,0 +5,0 @@ "main": "./lib/m2x", |
11464
256