diff --git a/lib/vimeo.js b/lib/vimeo.js index 3e74ca3..3b8b2ac 100644 --- a/lib/vimeo.js +++ b/lib/vimeo.js @@ -76,17 +76,18 @@ Vimeo.prototype._accessToken = null * * - hostname * - port - * - query (will be applied to the url if GET, request body if POST) + * - query (will be applied to the url if GET, request body if POST with content type application/x-www-form-urlencoded or application/json) * - headers * - path (can include a querystring) * - method + * - body (will be applied to request body if POST with content type that is not application/x-www-form-urlencoded or application/json) * * The callback takes two parameters, `err` and `json`. * If an error has occured, your callback will be called as `callback(err)`; * If an error has not occured, your callback will be called as `callback(null, json)`; * * @param {string|Object} options String path (default GET), or object with `method`, path`, - * `host`, `port`, `query` or `headers`. + * `host`, `port`, `query`, `body`, or `headers`. * @param {Function} callback Called when complete, `function (err, json)`. */ Vimeo.prototype.request = function (options, callback) {