
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@kassellabs/corellia-api
Advanced tools
This module provides easy access to Corellia's API to request and manage video rendering.
npm i --save @kassellabs/corellia-api
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 '@kassellabs/corellia-api';
const api = new CorelliaAPI({
clientId: '< your corellia client id >',
clientSecret: '< your corellia client secret >',
});
You can also specify a different API endpoint via host
param on the constructor.
After that you can start calling the main methods:
Requests a new video to be rendered based on a custom JSON
const videoRequest = await api.requestNewVideo(customJSON);
// Example:
//
// {
// "lastModified":"2020-01-24T18:08:13.654Z",
// "userId":"XXXX",
// "actions":[
// ...,
// ],
// "templateId":"my-template-id",
// "customJSON":{
// "videoURL":"<my-video-url>",
// "timeToBeContinued":9.731636028610229,
// "videoStartAt":0,
// "videoEndAt":14.731636028610229
// },
// "renderJob":{
// "state":"started",
// "downloadURL":null
// },
// "id":"IIIIIIIIIIIIII"
// }
Retrieve a list of all requestd videos so far
const videoRequests = await api.getAllVideoRequests(customJSON);
// Example:
//
// [{
// "lastModified":"2020-01-24T18:08:13.654Z",
// "userId":"XXXX",
// "actions":[
// ...,
// ],
// "templateId":"my-template-id",
// "customJSON":{
// "videoURL":"<my-video-url>",
// "timeToBeContinued":9.731636028610229,
// "videoStartAt":0,
// "videoEndAt":14.731636028610229
// },
// "renderJob":{
// "state":"started",
// "downloadURL":null
// },
// "id":"IIIIIIIIIIIIII"
// }, ...]
Retrieve the status of a already created videoRequest
const videoRequest = await api.getVideoRequest('<your-video-request-id>');
// Example:
//
// {
// "lastModified":"2020-01-24T18:08:13.654Z",
// "userId":"XXXX",
// "actions":[
// ...,
// ],
// "templateId":"my-template-id",
// "customJSON":{
// "videoURL":"<my-video-url>",
// "timeToBeContinued":9.731636028610229,
// "videoStartAt":0,
// "videoEndAt":14.731636028610229
// },
// "renderJob":{
// "state":"started",
// "downloadURL":null
// },
// "id":"IIIIIIIIIIIIII"
// }
Remove a specific video request
const { success } = await api.deleteVideoRequest('<your-video-request-id>');
// success === true -> deleted
// success === false -> not deleted
FAQs
Corellia's External API to render After Effects Videos
The npm package @kassellabs/corellia-api receives a total of 0 weekly downloads. As such, @kassellabs/corellia-api popularity was classified as not popular.
We found that @kassellabs/corellia-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.