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.4
  • latest
  • 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 request and manage video rendering.

Installation

npm i --save @kassellabs/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 '@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:

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":{
//     "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":{
//     "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":{
//     "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 04 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