adding vimeo api
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user