Corellia API
This module provides easy access to Corellia's API to render videos based on
After Effects Templates.
Installation
npm i --save @corellia/api
Usage
First you should get your Corellia API Client ID and Client Secret, then
you can start using this project by instantiating the main class
import CorelliaAPI from '@corellia/api';
const api = new CorelliaAPI({
host: 'https://my-own-api',
clientId: '< your corellia client id >',
clientSecret: '< your corellia client secret >',
});
After that you can start calling the main methods:
requestNewVideo(customJSON)
Requests a new video to be rendered based on a custom JSON
const videoRequest = await api.requestNewVideo(customJSON);
getAllVideoRequests()
Retrieve a list of all requestd videos so far
const videoRequests = await api.getAllVideoRequests(customJSON);
getVideoRequest(id)
Retrieve the status of a already created videoRequest
const videoRequest = await api.getVideoRequest('<your-video-request-id>');
deleteVideoRequest(id)
Remove a specific video request
const { success } = await api.deleteVideoRequest('<your-video-request-id>');