Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kassellabs/corellia-api

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kassellabs/corellia-api

Corellia's External API to render After Effects Videos

  • 0.0.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

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', // Defaults to the production server
  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);
// 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":{
//     "id":"WWWWWWWWWWW",
//     "state":"started",
//     "downloadURL":null
//   },
//   "id":"IIIIIIIIIIIIII"
// }

getAllVideoRequests()

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":{
//     "id":"WWWWWWWWWWW",
//     "state":"started",
//     "downloadURL":null
//   },
//   "id":"IIIIIIIIIIIIII"
// }, ...]

getVideoRequest(id)

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":{
//     "id":"WWWWWWWWWWW",
//     "state":"started",
//     "downloadURL":null
//   },
//   "id":"IIIIIIIIIIIIII"
// }

deleteVideoRequest(id)

Remove a specific video request

const { success } = await api.deleteVideoRequest('<your-video-request-id>');
// success === true -> deleted
// success === false -> not deleted

FAQs

Package last updated on 03 Feb 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc