The api this module uses is now deprecated.
Please use vimeo/vimeo.js instead.
#vimeo Node.js module for the vimeo api.
npm install vimeo
See vimeo.com/api/docs/simple-api for full list of requests.
var vimeo = require('vimeo')()
vimeo.user('brad/likes', function(err, res) {
console.log(res[0].id)
})
// pass in page param
vimeo.user('brad/likes', { page: 2 }, function(err, res) {
console.log(res[0].id)
})
See vimeo.com/api/docs/methods for full list of methods.
var key = '' // vimeo api key
var secret = '' // vimeo api secret
var vimeo = require('vimeo')(key, secret)
// vimeo.area(method[, params[, access]], callback)
var params = { channel_id: 'moco' }
vimeo.channels('getVideos', params, function(err, res) {
console.log(res.videos.video)
})
// get a request secret and redirect (perms can be 'read', 'write', or 'delete')
vimeo.getRequestToken('http://redirecturl', perms, function(err, req) {
// req.secret: store in session for vimeo.getAccessToken
// req.redirect: send user to this url
})
// token and verifier from vimeo callback query string, secret from vimeo.getRequestToken
vimeo.getAccessToken(token, secret, verifier, function(err, access) {
// access containes access token and access token secret ready for vimeo calls
vimeo.people('getInfo', {}, access, function(err, res) {
console.log(res.username)
})
})
node-oauth github.com/ciaranj/node-oauth
MIT license - opensource.org/licenses/mit-license.php