adding vimeo api

This commit is contained in:
aeroreyna
2022-03-13 15:58:30 -07:00
parent 57a91c0470
commit a3fc84fbad
4 changed files with 341 additions and 16 deletions
+15
View File
@@ -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;