0.0.5 • Published 1 year ago
efficientvideo v0.0.5
Efficient Video
Efficient Video is a cost-effective video hosting solution. This is a convenience wrapper for the Efficient Video GraphQL API.
First, import the library:
const client = require('efficientvideo');
Then, authenticate using your API key:
client.setKey(API_KEY);
Then, perform the actions you wish.
Import from external URL
To import a video from an external URL, use the following:
const video = await client.importVideo(LIBRARY_ID, VIDEO_URL);
console.log('Video', video);
Get video
To get info about a video
const video = await client.getVideo(VIDEO_ID);
console.log('Video', video);