Skip to content

Commit

Permalink
Merge pull request #164 from vimeo/update-doc
Browse files Browse the repository at this point in the history
updates the `vimeo.request` doc to include `body` parameter
  • Loading branch information
hedyyytang authored Jan 19, 2023
2 parents 7d0d2c9 + 4ecb120 commit 46a4368
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46a4368

Please sign in to comment.