15 lines
469 B
JavaScript
15 lines
469 B
JavaScript
let Vimeo = require('vimeo').Vimeo;
|
|
let client = new Vimeo(process.env.VIMEO_CLIENT_ID, process.env.VIMEO_CLIENT_SECRET, process.env.VIMEO_TOKEN);
|
|
|
|
client.request({
|
|
method: 'GET',
|
|
path: '/tutorial'
|
|
}, function (error, body, status_code, headers) {
|
|
if (error)
|
|
console.log("Failing vimeo auth", error);
|
|
if (body.token_is_authenticated)
|
|
return console.log("Vimeo Auth Success");
|
|
console.log("Failing vimeo auth");
|
|
});
|
|
|
|
exports = client; |