跳到主要内容

开始使用

安装

npm install real_api_bbl

使用

  • 获取场景
import * as REAL from "real_api_bbl";

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

创建新任务

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);

上传场景

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

提交任务

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

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