Skip to main content

Getting Started

Installation

npm install real_api_bbl

Usage

  • Get Scene
import * as REAL from "real_api_bbl";

const blob = await REAL.Scene(scene, camera);

Create new job

import * as REAL from "real_api_bbl";

const params = {
"prodCred": {
"insID": 0,
"appKey": "ABC",
"prodKey": "XYZ"
},
"type": "new",
"render": {
"expFrom": "3js"
}
}

const response = await axios.post(REAL.API, params);

Upload scene

 const request = await axios.put(uploadUri, blob);

Submit job

const params = {
"prodCred": {
"insID": 0,
"appKey": "ABC",
"prodKey": "XYZ"
},
"type": "render",
"jobID": "1703925059_301526"
}

const response = await axios.post(uri, params);